public class EntityStatusEffectS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private byte |
amplifier |
private int |
duration |
private byte |
effectId |
private int |
entityId |
private byte |
flags |
Constructor and Description |
---|
EntityStatusEffectS2CPacket() |
EntityStatusEffectS2CPacket(int entityId,
StatusEffectInstance effect) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
byte |
getAmplifier() |
int |
getDuration() |
byte |
getEffectId() |
int |
getEntityId() |
boolean |
isAmbient() |
boolean |
isPermanent() |
void |
read(PacketByteBuf buf) |
boolean |
shouldShowIcon() |
boolean |
shouldShowParticles() |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int entityId
private byte effectId
private byte amplifier
private int duration
private byte flags
public EntityStatusEffectS2CPacket()
public EntityStatusEffectS2CPacket(int entityId, StatusEffectInstance effect)
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
@Environment(value=CLIENT) public boolean isPermanent()
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public int getEntityId()
@Environment(value=CLIENT) public byte getEffectId()
@Environment(value=CLIENT) public byte getAmplifier()
@Environment(value=CLIENT) public int getDuration()
@Environment(value=CLIENT) public boolean shouldShowParticles()
@Environment(value=CLIENT) public boolean isAmbient()
@Environment(value=CLIENT) public boolean shouldShowIcon()