Class WrapperPlayServerEntityEffect
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerEntityEffect
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final com.comphenix.protocol.PacketType
The packet type that is wrapped by this wrapper.Fields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new wrapper and initialize it with a packet handle with default valuesWrapperPlayServerEntityEffect
(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.potion.PotionEffectType
Retrieves the value of field 'effect'byte
Retrieves the value of field 'effectAmplifier'int
Retrieves the value of field 'effectDurationTicks'int
Retrieves the value of field 'entityId'Retrieves the value of field 'factorData'com.comphenix.protocol.events.InternalStructure
Deprecated.byte
getFlags()
Retrieves a bitmask for different flags of this effectboolean
boolean
boolean
void
setAmbient
(boolean ambient) void
setEffect
(org.bukkit.potion.PotionEffectType value) Sets the value of field 'effect'void
setEffectAmplifier
(byte value) Sets the value of field 'effectAmplifier'void
setEffectDurationTicks
(int value) Sets the value of field 'effectDurationTicks'void
setEntityId
(int value) Sets the value of field 'entityId'void
Sets the value of field 'factorData'void
setFactorDataInternal
(com.comphenix.protocol.events.InternalStructure value) Deprecated.void
setFlags
(byte value) Sets a bitmask for different flags of this effectvoid
setShowIcon
(boolean showIcon) void
setShowParticles
(boolean showParticles) Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPEThe 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.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
Retrieves the value of field 'factorData'- Returns:
- 'factorData'
-
setFactorData
Sets the value of field 'factorData'- Parameters:
value
- New value for field 'factorData'
-