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 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

      public ClientboundUpdateMobEffectPacket(int p_133611_, MobEffectInstance p_133612_)
    • ClientboundUpdateMobEffectPacket

      public ClientboundUpdateMobEffectPacket(FriendlyByteBuf p_179466_)
  • Method Details

    • write

      public void write(FriendlyByteBuf p_133621_)
      Specified by:
      write in interface Packet<ClientGamePacketListener>
    • isSuperLongDuration

      public boolean isSuperLongDuration()
    • handle

      public void handle(ClientGamePacketListener p_133618_)
      Specified by:
      handle in interface Packet<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()