Class WrapperPlayServerSetSlot
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerSetSlot
Send by server to client when an item at a specific slot in a container should be updated
-
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 valuesWrapperPlayServerSetSlot
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the id of the container to updateorg.bukkit.inventory.ItemStack
Retrieves the value of field 'itemStack'int
getSlot()
Retrieves the index of the slot that should be updatedint
Retrieves the value of field 'stateId'void
setContainerId
(int value) Sets the id of the container to updatevoid
setItemStack
(org.bukkit.inventory.ItemStack value) Sets the value of field 'itemStack'void
setSlot
(int value) Sets the index of the slot that should be updatedvoid
setStateId
(int value) Sets the value of field 'stateId'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
-
WrapperPlayServerSetSlot
public WrapperPlayServerSetSlot()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerSetSlot
public WrapperPlayServerSetSlot(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet- Parameters:
packet
- the packet to wrap
-
-
Method Details
-
getContainerId
public int getContainerId()Retrieves the id of the container to update- Returns:
- 'containerId'
-
setContainerId
public void setContainerId(int value) Sets the id of the container to update- Parameters:
value
- New value for field 'containerId'
-
getStateId
public int getStateId()Retrieves the value of field 'stateId'- Returns:
- 'stateId'
-
setStateId
public void setStateId(int value) Sets the value of field 'stateId'- Parameters:
value
- New value for field 'stateId'
-
getSlot
public int getSlot()Retrieves the index of the slot that should be updated- Returns:
- 'slot'
-
setSlot
public void setSlot(int value) Sets the index of the slot that should be updated- Parameters:
value
- New value for field 'slot'
-
getItemStack
public org.bukkit.inventory.ItemStack getItemStack()Retrieves the value of field 'itemStack'- Returns:
- 'itemStack'
-
setItemStack
public void setItemStack(org.bukkit.inventory.ItemStack value) Sets the value of field 'itemStack'- Parameters:
value
- New value for field 'itemStack'
-