Class BundleCache.BundleData

java.lang.Object
org.geysermc.geyser.session.cache.BundleCache.BundleData
Enclosing class:
BundleCache

public static final class BundleCache.BundleData extends Object
Primarily exists to support net IDs within bundles. Important to prevent accidental item deletion in creative mode.
  • Constructor Details

    • BundleData

      public BundleData(GeyserSession session, List<org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack> contents)
  • Method Details

    • bundleId

      public int bundleId()
    • contents

      public List<GeyserItemStack> contents()
    • freshFromServer

      public boolean freshFromServer()
    • toComponent

      public List<org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack> toComponent()
    • updateNetIds

      public void updateNetIds(GeyserSession session, BundleCache.BundleData oldData)
      Merge in changes from the server and re-use net IDs where possible.
    • copy

      public BundleCache.BundleData copy()