Elder Guardian appearance API

This commit is contained in:
SoSeDiK 2022-10-11 20:38:47 +03:00
parent 4f1619700a
commit 7224eecfb1

View File

@ -3295,6 +3295,13 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
}
// Paper end
// Paper start
@Override
public void showElderGuardian(boolean silent) {
if (getHandle().connection != null) getHandle().connection.send(new ClientboundGameEventPacket(ClientboundGameEventPacket.GUARDIAN_ELDER_EFFECT, silent ? 0F : 1F));
}
// Paper end
public Player.Spigot spigot()
{
return this.spigot;