Class WrapperPlayServerWindowItems
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerWindowItems
-
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 valuesWrapperPlayServerWindowItems
(com.comphenix.protocol.events.PacketContainer packet) Constructors a new wrapper for the specified packet -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStack
Retrieves the value of field 'carriedItem'int
Retrieves the value of field 'containerId'List<org.bukkit.inventory.ItemStack>
getItems()
Retrieves the value of field 'items'int
Retrieves the value of field 'stateId'void
setCarriedItem
(org.bukkit.inventory.ItemStack value) Sets the value of field 'carriedItem'void
setContainerId
(int value) Sets the value of field 'containerId'void
Sets the value of field 'items'void
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
-
WrapperPlayServerWindowItems
public WrapperPlayServerWindowItems()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerWindowItems
public WrapperPlayServerWindowItems(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 value of field 'containerId'- Returns:
- 'containerId'
-
setContainerId
public void setContainerId(int value) Sets the value of field 'containerId'- 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'
-
getItems
Retrieves the value of field 'items'- Returns:
- 'items'
-
setItems
Sets the value of field 'items'- Parameters:
value
- New value for field 'items'
-
getCarriedItem
public org.bukkit.inventory.ItemStack getCarriedItem()Retrieves the value of field 'carriedItem'- Returns:
- 'carriedItem'
-
setCarriedItem
public void setCarriedItem(org.bukkit.inventory.ItemStack value) Sets the value of field 'carriedItem'- Parameters:
value
- New value for field 'carriedItem'
-