Class BundleCache.BundleData
java.lang.Object
org.geysermc.geyser.session.cache.BundleCache.BundleData
- Enclosing class:
BundleCache
Primarily exists to support net IDs within bundles.
Important to prevent accidental item deletion in creative mode.
-
Constructor Summary
ConstructorsConstructorDescriptionBundleData(GeyserSession session, List<org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack> contents) -
Method Summary
Modifier and TypeMethodDescriptionintbundleId()contents()copy()booleanList<org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack> voidupdateNetIds(GeyserSession session, BundleCache.BundleData oldData) Merge in changes from the server and re-use net IDs where possible.
-
Constructor Details
-
BundleData
public BundleData(GeyserSession session, List<org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack> contents)
-
-
Method Details
-
bundleId
public int bundleId() -
contents
-
freshFromServer
public boolean freshFromServer() -
toComponent
-
updateNetIds
Merge in changes from the server and re-use net IDs where possible. -
copy
-