Class ClientboundUpdateMobEffectPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundUpdateMobEffectPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundUpdateMobEffectPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byteprivate intprivate byteprivate intprivate static intprivate static intprivate static intprivate byte -
Constructor Summary
ConstructorsConstructorDescriptionClientboundUpdateMobEffectPacket(int p_133611_, MobEffectInstance p_133612_)ClientboundUpdateMobEffectPacket(FriendlyByteBuf p_179466_) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyteintbyteintvoidhandle(ClientGamePacketListener p_133618_)booleanbooleanbooleanvoidwrite(FriendlyByteBuf p_133621_)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
FLAG_AMBIENT
private static final int FLAG_AMBIENT- See Also:
- Constant Field Values
-
FLAG_VISIBLE
private static final int FLAG_VISIBLE- See Also:
- Constant Field Values
-
FLAG_SHOW_ICON
private static final int FLAG_SHOW_ICON- See Also:
- Constant Field Values
-
entityId
private final int entityId -
effectId
private final byte effectId -
effectAmplifier
private final byte effectAmplifier -
effectDurationTicks
private final int effectDurationTicks -
flags
private final byte flags
-
-
Constructor Details
-
ClientboundUpdateMobEffectPacket
-
ClientboundUpdateMobEffectPacket
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientGamePacketListener>
-
isSuperLongDuration
public boolean isSuperLongDuration() -
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getEntityId
public int getEntityId() -
getEffectId
public byte getEffectId() -
getEffectAmplifier
public byte getEffectAmplifier() -
getEffectDurationTicks
public int getEffectDurationTicks() -
isEffectVisible
public boolean isEffectVisible() -
isEffectAmbient
public boolean isEffectAmbient() -
effectShowsIcon
public boolean effectShowsIcon()
-