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
Modifier and TypeFieldDescriptionprivate byte
private int
private byte
private int
private static int
private static int
private static int
private byte
-
Constructor Summary
ConstructorDescriptionClientboundUpdateMobEffectPacket(int p_133611_, MobEffectInstance p_133612_)
ClientboundUpdateMobEffectPacket(FriendlyByteBuf p_179466_)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
byte
int
byte
int
void
handle(ClientGamePacketListener p_133618_)
boolean
boolean
boolean
void
write(FriendlyByteBuf p_133621_)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
write
in interfacePacket<ClientGamePacketListener>
-
isSuperLongDuration
public boolean isSuperLongDuration() -
handle
- Specified by:
handle
in 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()
-