Package org.geysermc.geyser.inventory
Class AnvilContainer
java.lang.Object
org.geysermc.geyser.inventory.Inventory
org.geysermc.geyser.inventory.Container
org.geysermc.geyser.inventory.AnvilContainer
Used to determine if rename packets should be sent and stores
the expected level cost for AnvilInventoryUpdater
-
Field Summary
Fields inherited from class org.geysermc.geyser.inventory.Inventory
containerType, holderId, holderPosition, id, items, size, title
-
Constructor Summary
ConstructorDescriptionAnvilContainer(String title, int id, int size, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory)
-
Method Summary
Modifier and TypeMethodDescriptiongetInput()
int
Stores the level cost received as a window property from Javaint
The new name of the item as received from Bedrockboolean
A flag to specify whether javaLevelCost can be used as it can be outdated or not sent at all.void
setJavaLevelCost(int javaLevelCost)
Stores the level cost received as a window property from Javavoid
setLastInput(GeyserItemStack lastInput)
void
setLastMaterial(GeyserItemStack lastMaterial)
void
setLastTargetSlot(int lastTargetSlot)
void
setNewName(String newName)
The new name of the item as received from Bedrockvoid
setUseJavaLevelCost(boolean useJavaLevelCost)
A flag to specify whether javaLevelCost can be used as it can be outdated or not sent at all.Methods inherited from class org.geysermc.geyser.inventory.Container
getContainerSize, getItem, getPlayerInventory, getSize, isUsingRealBlock, setItem, setUsingRealBlock
Methods inherited from class org.geysermc.geyser.inventory.Inventory
getContainerType, getHolderId, getHolderPosition, getId, getStateId, getTitle, isPending, setHolderId, setHolderPosition, setPending, setStateId, setTitle, toString, updateItemNetId
-
Constructor Details
-
AnvilContainer
public AnvilContainer(String title, int id, int size, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory)
-
-
Method Details
-
getInput
-
getMaterial
-
getResult
-
getJavaLevelCost
public int getJavaLevelCost()Stores the level cost received as a window property from Java -
isUseJavaLevelCost
public boolean isUseJavaLevelCost()A flag to specify whether javaLevelCost can be used as it can be outdated or not sent at all. -
getNewName
The new name of the item as received from Bedrock -
getLastInput
-
getLastMaterial
-
getLastTargetSlot
public int getLastTargetSlot() -
setJavaLevelCost
public void setJavaLevelCost(int javaLevelCost)Stores the level cost received as a window property from Java -
setUseJavaLevelCost
public void setUseJavaLevelCost(boolean useJavaLevelCost)A flag to specify whether javaLevelCost can be used as it can be outdated or not sent at all. -
setNewName
The new name of the item as received from Bedrock -
setLastInput
-
setLastMaterial
-
setLastTargetSlot
public void setLastTargetSlot(int lastTargetSlot)
-