Class WrapperPlayServerEntityEffect

java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerEntityEffect

public class WrapperPlayServerEntityEffect extends AbstractPacket
  • Field Details

    • TYPE

      public static final com.comphenix.protocol.PacketType TYPE
      The packet type that is wrapped by this wrapper.
    • FLAG_AMBIENT

      public static final int FLAG_AMBIENT
      See Also:
    • FLAG_SHOW_PARTICLE

      public static final int FLAG_SHOW_PARTICLE
      See Also:
    • FLAG_SHOW_ICON

      public static final int FLAG_SHOW_ICON
      See Also:
  • Constructor Details

    • WrapperPlayServerEntityEffect

      public WrapperPlayServerEntityEffect()
      Constructs a new wrapper and initialize it with a packet handle with default values
    • WrapperPlayServerEntityEffect

      public WrapperPlayServerEntityEffect(com.comphenix.protocol.events.PacketContainer packet)
  • Method Details

    • getEntityId

      public int getEntityId()
      Retrieves the value of field 'entityId'
      Returns:
      'entityId'
    • setEntityId

      public void setEntityId(int value)
      Sets the value of field 'entityId'
      Parameters:
      value - New value for field 'entityId'
    • getEffect

      public org.bukkit.potion.PotionEffectType getEffect()
      Retrieves the value of field 'effect'
      Returns:
      'effect'
    • setEffect

      public void setEffect(org.bukkit.potion.PotionEffectType value)
      Sets the value of field 'effect'
      Parameters:
      value - New value for field 'effect'
    • getEffectAmplifier

      public byte getEffectAmplifier()
      Retrieves the value of field 'effectAmplifier'
      Returns:
      'effectAmplifier'
    • setEffectAmplifier

      public void setEffectAmplifier(byte value)
      Sets the value of field 'effectAmplifier'
      Parameters:
      value - New value for field 'effectAmplifier'
    • getEffectDurationTicks

      public int getEffectDurationTicks()
      Retrieves the value of field 'effectDurationTicks'
      Returns:
      'effectDurationTicks'
    • setEffectDurationTicks

      public void setEffectDurationTicks(int value)
      Sets the value of field 'effectDurationTicks'
      Parameters:
      value - New value for field 'effectDurationTicks'
    • getFlags

      public byte getFlags()
      Retrieves a bitmask for different flags of this effect
      Returns:
      'flags'
    • setFlags

      public void setFlags(byte value)
      Sets a bitmask for different flags of this effect
      Parameters:
      value - New value for field 'flags'
    • isAmbient

      public boolean isAmbient()
    • setAmbient

      public void setAmbient(boolean ambient)
    • isShowParticles

      public boolean isShowParticles()
    • setShowParticles

      public void setShowParticles(boolean showParticles)
    • isShowIcon

      public boolean isShowIcon()
    • setShowIcon

      public void setShowIcon(boolean showIcon)
    • getFactorDataInternal

      @Deprecated public com.comphenix.protocol.events.InternalStructure getFactorDataInternal()
      Deprecated.
      Retrieves the value of field 'factorData' ProtocolLib currently does not provide a wrapper for this type. Access to this type is only provided by an InternalStructure
      Returns:
      'factorData'
    • setFactorDataInternal

      @Deprecated public void setFactorDataInternal(com.comphenix.protocol.events.InternalStructure value)
      Deprecated.
      Sets the value of field 'factorData' ProtocolLib currently does not provide a wrapper for this type. Access to this type is only provided by an InternalStructure
      Parameters:
      value - New value for field 'factorData'
    • getFactorData

      @Nullable public WrapperPlayServerEntityEffect.WrappedFactorData getFactorData()
      Retrieves the value of field 'factorData'
      Returns:
      'factorData'
    • setFactorData

      public void setFactorData(@Nullable WrapperPlayServerEntityEffect.WrappedFactorData value)
      Sets the value of field 'factorData'
      Parameters:
      value - New value for field 'factorData'