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
ConstructorsConstructorDescriptionAnvilContainer(String title, int id, int size, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory) -
Method Summary
Modifier and TypeMethodDescriptiongetInput()intStores the level cost received as a window property from JavaintThe new name of the item as received from BedrockbooleanA flag to specify whether javaLevelCost can be used as it can be outdated or not sent at all.voidsetJavaLevelCost(int javaLevelCost)Stores the level cost received as a window property from JavavoidsetLastInput(GeyserItemStack lastInput)voidsetLastMaterial(GeyserItemStack lastMaterial)voidsetLastTargetSlot(int lastTargetSlot)voidsetNewName(String newName)The new name of the item as received from BedrockvoidsetUseJavaLevelCost(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, setUsingRealBlockMethods 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)
-