Class WrapperPlayServerSetCooldown
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerSetCooldown
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 valuesWrapperPlayServerSetCooldown
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the value of field 'duration'org.bukkit.Material
getItem()
Retrieves the value of field 'item'void
setDuration
(int value) Sets the value of field 'duration'void
setItem
(org.bukkit.Material value) Sets the value of field 'item'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.
-
-
Constructor Details
-
WrapperPlayServerSetCooldown
public WrapperPlayServerSetCooldown()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerSetCooldown
public WrapperPlayServerSetCooldown(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet- Parameters:
packet
- the packet to wrap
-
-
Method Details
-
getItem
public org.bukkit.Material getItem()Retrieves the value of field 'item'- Returns:
- 'item'
-
setItem
public void setItem(org.bukkit.Material value) Sets the value of field 'item'- Parameters:
value
- New value for field 'item'
-
getDuration
public int getDuration()Retrieves the value of field 'duration'- Returns:
- 'duration'
-
setDuration
public void setDuration(int value) Sets the value of field 'duration'- Parameters:
value
- New value for field 'duration'
-