Class WrapperPlayServerCollect
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerCollect
-
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 valuesWrapperPlayServerCollect
(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the value of field 'amount'int
Retrieves the value of field 'itemId'int
Retrieves the value of field 'playerId'void
setAmount
(int value) Sets the value of field 'amount'void
setItemId
(int value) Sets the value of field 'itemId'void
setPlayerId
(int value) Sets the value of field 'playerId'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
-
WrapperPlayServerCollect
public WrapperPlayServerCollect()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerCollect
public WrapperPlayServerCollect(com.comphenix.protocol.events.PacketContainer packet)
-
-
Method Details
-
getItemId
public int getItemId()Retrieves the value of field 'itemId'- Returns:
- 'itemId'
-
setItemId
public void setItemId(int value) Sets the value of field 'itemId'- Parameters:
value
- New value for field 'itemId'
-
getPlayerId
public int getPlayerId()Retrieves the value of field 'playerId'- Returns:
- 'playerId'
-
setPlayerId
public void setPlayerId(int value) Sets the value of field 'playerId'- Parameters:
value
- New value for field 'playerId'
-
getAmount
public int getAmount()Retrieves the value of field 'amount'- Returns:
- 'amount'
-
setAmount
public void setAmount(int value) Sets the value of field 'amount'- Parameters:
value
- New value for field 'amount'
-