Class BundleCache

java.lang.Object
org.geysermc.geyser.session.cache.BundleCache

public final class BundleCache extends Object
  • Constructor Details

  • Method Details

    • initialize

      public void initialize(GeyserItemStack itemStack)
      Checks to see if the given item from the server is a bundle. If so, we initialize our bundle cache.
    • markNewBundle

      public void markNewBundle(@Nullable BundleCache.BundleData bundleData)
    • checkForBundle

      public org.cloudburstmc.protocol.bedrock.data.inventory.ItemData checkForBundle(GeyserItemStack itemStack, org.cloudburstmc.protocol.bedrock.data.inventory.ItemData.Builder itemData)
    • onItemAdded

      public void onItemAdded(GeyserItemStack bundle)
    • onItemRemoved

      public void onItemRemoved(GeyserItemStack bundle, int slot)
    • onOldItemDelete

      public void onOldItemDelete(GeyserItemStack itemStack)
      If a bundle is no longer present in the working inventory, delete the cache from the client.
    • onInventoryClose

      public void onInventoryClose(Inventory inventory)
    • 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)