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 intstatic final intstatic final intstatic final com.comphenix.protocol.PacketTypeThe 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.PotionEffectTypeRetrieves the value of field 'effect'byteRetrieves the value of field 'effectAmplifier'intRetrieves the value of field 'effectDurationTicks'intRetrieves the value of field 'entityId'Retrieves the value of field 'factorData'com.comphenix.protocol.events.InternalStructureDeprecated.bytegetFlags()Retrieves a bitmask for different flags of this effectbooleanbooleanbooleanvoidsetAmbient(boolean ambient) voidsetEffect(org.bukkit.potion.PotionEffectType value) Sets the value of field 'effect'voidsetEffectAmplifier(byte value) Sets the value of field 'effectAmplifier'voidsetEffectDurationTicks(int value) Sets the value of field 'effectDurationTicks'voidsetEntityId(int value) Sets the value of field 'entityId'voidSets the value of field 'factorData'voidsetFactorDataInternal(com.comphenix.protocol.events.InternalStructure value) Deprecated.voidsetFlags(byte value) Sets a bitmask for different flags of this effectvoidsetShowIcon(boolean showIcon) voidsetShowParticles(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'
-