Class BundleCache
java.lang.Object
org.geysermc.geyser.session.cache.BundleCache
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classPrimarily exists to support net IDs within bundles. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.cloudburstmc.protocol.bedrock.data.inventory.ItemDatacheckForBundle(GeyserItemStack itemStack, org.cloudburstmc.protocol.bedrock.data.inventory.ItemData.Builder itemData) static org.cloudburstmc.protocol.bedrock.data.inventory.FullContainerNamecreateContainer(int id) voidinitialize(GeyserItemStack itemStack) Checks to see if the given item from the server is a bundle.voidmarkNewBundle(@Nullable BundleCache.BundleData bundleData) voidvoidonInventoryClose(Inventory inventory) voidonItemAdded(GeyserItemStack bundle) voidonItemRemoved(GeyserItemStack bundle, int slot) voidonOldItemDelete(GeyserItemStack itemStack) If a bundle is no longer present in the working inventory, delete the cache from the client.static intplatformConvertSlot(int contentsSize, int rawSlot) Bidirectional; works for both Bedrock and Java.voidtick()
-
Constructor Details
-
BundleCache
-
-
Method Details
-
initialize
Checks to see if the given item from the server is a bundle. If so, we initialize our bundle cache. -
markNewBundle
-
checkForBundle
public org.cloudburstmc.protocol.bedrock.data.inventory.ItemData checkForBundle(GeyserItemStack itemStack, org.cloudburstmc.protocol.bedrock.data.inventory.ItemData.Builder itemData) -
onItemAdded
-
onItemRemoved
-
onOldItemDelete
If a bundle is no longer present in the working inventory, delete the cache from the client. -
onInventoryClose
-
awaitRelease
public void awaitRelease() -
markRelease
public void markRelease() -
tick
public void tick() -
platformConvertSlot
public static int platformConvertSlot(int contentsSize, int rawSlot) Bidirectional; works for both Bedrock and Java. -
createContainer
public static org.cloudburstmc.protocol.bedrock.data.inventory.FullContainerName createContainer(int id)
-