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 final byte
private final int
private final int
private final int
private static final int
private static final int
private static final int
private final byte
-
Constructor Summary
ConstructorDescriptionClientboundUpdateMobEffectPacket
(int p_133611_, MobEffectInstance p_133612_) ClientboundUpdateMobEffectPacket
(FriendlyByteBuf p_179466_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
byte
int
int
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:
-
FLAG_VISIBLE
private static final int FLAG_VISIBLE- See Also:
-
FLAG_SHOW_ICON
private static final int FLAG_SHOW_ICON- See Also:
-
entityId
private final int entityId -
effectId
private final int 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 int getEffectId() -
getEffectAmplifier
public byte getEffectAmplifier() -
getEffectDurationTicks
public int getEffectDurationTicks() -
isEffectVisible
public boolean isEffectVisible() -
isEffectAmbient
public boolean isEffectAmbient() -
effectShowsIcon
public boolean effectShowsIcon()
-