Class WrapperPlayServerOpenWindowMerchant
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.clientbound.WrapperPlayServerOpenWindowMerchant
-
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 valuesWrapperPlayServerOpenWindowMerchant
(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Retrieves the value of field 'canRestock'int
Retrieves the value of field 'containerId'List<org.bukkit.inventory.MerchantRecipe>
Retrieves the value of field 'offers'boolean
Retrieves the value of field 'showProgress'int
Retrieves the value of field 'villagerLevel'int
Retrieves the value of field 'villagerXp'void
setCanRestock
(boolean value) Sets the value of field 'canRestock'void
setContainerId
(int value) Sets the value of field 'containerId'void
Sets the value of field 'offers'void
setShowProgress
(boolean value) Sets the value of field 'showProgress'void
setVillagerLevel
(int value) Sets the value of field 'villagerLevel'void
setVillagerXp
(int value) Sets the value of field 'villagerXp'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
-
WrapperPlayServerOpenWindowMerchant
public WrapperPlayServerOpenWindowMerchant()Constructs a new wrapper and initialize it with a packet handle with default values -
WrapperPlayServerOpenWindowMerchant
public WrapperPlayServerOpenWindowMerchant(com.comphenix.protocol.events.PacketContainer packet)
-
-
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'
-
getOffers
Retrieves the value of field 'offers'- Returns:
- 'offers'
-
setOffers
Sets the value of field 'offers'- Parameters:
value
- New value for field 'offers'
-
getVillagerLevel
public int getVillagerLevel()Retrieves the value of field 'villagerLevel'- Returns:
- 'villagerLevel'
-
setVillagerLevel
public void setVillagerLevel(int value) Sets the value of field 'villagerLevel'- Parameters:
value
- New value for field 'villagerLevel'
-
getVillagerXp
public int getVillagerXp()Retrieves the value of field 'villagerXp'- Returns:
- 'villagerXp'
-
setVillagerXp
public void setVillagerXp(int value) Sets the value of field 'villagerXp'- Parameters:
value
- New value for field 'villagerXp'
-
getShowProgress
public boolean getShowProgress()Retrieves the value of field 'showProgress'- Returns:
- 'showProgress'
-
setShowProgress
public void setShowProgress(boolean value) Sets the value of field 'showProgress'- Parameters:
value
- New value for field 'showProgress'
-
getCanRestock
public boolean getCanRestock()Retrieves the value of field 'canRestock'- Returns:
- 'canRestock'
-
setCanRestock
public void setCanRestock(boolean value) Sets the value of field 'canRestock'- Parameters:
value
- New value for field 'canRestock'
-