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

    • LONG_DURATION_THRESHOLD

      private static final short LONG_DURATION_THRESHOLD
      See Also:
    • 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
    • effect

      private final MobEffect effect
    • effectAmplifier

      private final byte effectAmplifier
    • effectDurationTicks

      private final int effectDurationTicks
    • flags

      private final byte flags
    • factorData

      @Nullable private final MobEffectInstance.FactorData factorData
  • 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()
    • getEffect

      public MobEffect getEffect()
    • getEffectAmplifier

      public byte getEffectAmplifier()
    • getEffectDurationTicks

      public int getEffectDurationTicks()
    • isEffectVisible

      public boolean isEffectVisible()
    • isEffectAmbient

      public boolean isEffectAmbient()
    • effectShowsIcon

      public boolean effectShowsIcon()
    • getFactorData

      @Nullable public MobEffectInstance.FactorData getFactorData()