public class RemoveEntityStatusEffectS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private StatusEffect |
effectType |
private int |
entityId |
Constructor and Description |
---|
RemoveEntityStatusEffectS2CPacket() |
RemoveEntityStatusEffectS2CPacket(int entityId,
StatusEffect effectType) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
StatusEffect |
getEffectType() |
Entity |
getEntity(World world) |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int entityId
private StatusEffect effectType
public RemoveEntityStatusEffectS2CPacket()
public RemoveEntityStatusEffectS2CPacket(int entityId, StatusEffect effectType)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) @Nullable public StatusEffect getEffectType()