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 int
private final int
private final int
private static final int
private static final int
private static final int
private static final int
private final byte
-
Constructor Summary
ModifierConstructorDescriptionClientboundUpdateMobEffectPacket
(int p_333405_, MobEffectInstance p_336386_, boolean p_333848_) private
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
int
void
handle
(ClientGamePacketListener p_133618_) boolean
boolean
boolean
type()
private void
write
(RegistryFriendlyByteBuf p_332024_) 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, isTerminal
-
Field Details
-
STREAM_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf,ClientboundUpdateMobEffectPacket> STREAM_CODEC -
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:
-
FLAG_BLEND
private static final int FLAG_BLEND- See Also:
-
entityId
private final int entityId -
effect
-
effectAmplifier
private final int effectAmplifier -
effectDurationTicks
private final int effectDurationTicks -
flags
private final byte flags
-
-
Constructor Details
-
ClientboundUpdateMobEffectPacket
public ClientboundUpdateMobEffectPacket(int p_333405_, MobEffectInstance p_336386_, boolean p_333848_) -
ClientboundUpdateMobEffectPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getEntityId
public int getEntityId() -
getEffect
-
getEffectAmplifier
public int getEffectAmplifier() -
getEffectDurationTicks
public int getEffectDurationTicks() -
isEffectVisible
public boolean isEffectVisible() -
isEffectAmbient
public boolean isEffectAmbient() -
effectShowsIcon
public boolean effectShowsIcon() -
shouldBlend
public boolean shouldBlend()
-