Class EntityStatusEffectS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.EntityStatusEffectS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class EntityStatusEffectS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EntityStatusEffectS2CPacket()EntityStatusEffectS2CPacket(int entityId, StatusEffectInstance effect) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)bytegetAmplifier()intgetDuration()bytegetEffectId()intgetEntityId()booleanisAmbient()booleanisPermanent()voidread(PacketByteBuf buf)booleanshouldShowIcon()booleanshouldShowParticles()voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
entityId
private int entityId -
effectId
private byte effectId -
amplifier
private byte amplifier -
duration
private int duration -
flags
private byte flags
-
-
Constructor Details
-
EntityStatusEffectS2CPacket
public EntityStatusEffectS2CPacket() -
EntityStatusEffectS2CPacket
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
isPermanent
@Environment(CLIENT) public boolean isPermanent() -
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getEntityId
@Environment(CLIENT) public int getEntityId() -
getEffectId
@Environment(CLIENT) public byte getEffectId() -
getAmplifier
@Environment(CLIENT) public byte getAmplifier() -
getDuration
@Environment(CLIENT) public int getDuration() -
shouldShowParticles
@Environment(CLIENT) public boolean shouldShowParticles() -
isAmbient
@Environment(CLIENT) public boolean isAmbient() -
shouldShowIcon
@Environment(CLIENT) public boolean shouldShowIcon()
-