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

      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 int getEffectId()
    • getEffectAmplifier

      public byte getEffectAmplifier()
    • getEffectDurationTicks

      public int getEffectDurationTicks()
    • isEffectVisible

      public boolean isEffectVisible()
    • isEffectAmbient

      public boolean isEffectAmbient()
    • effectShowsIcon

      public boolean effectShowsIcon()