Class TagCache
java.lang.Object
org.geysermc.geyser.session.cache.TagCache
Manages information sent from the
ClientboundUpdateTagsPacket. If that packet is not sent, all lists here
will remain empty, matching Java Edition behavior.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]get(EnchantmentTag tag) booleanbooleanis(ItemTag tag, GeyserItemStack itemStack) booleanvoidloadPacket(GeyserSession session, org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundUpdateTagsPacket packet)
-
Constructor Details
-
TagCache
public TagCache()
-
-
Method Details
-
loadPacket
public void loadPacket(GeyserSession session, org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundUpdateTagsPacket packet) -
is
- Returns:
- true if the block tag is present and contains this block mapping's Java ID.
-
is
- Returns:
- true if the item tag is present and contains this item stack's Java ID.
-
is
- Returns:
- true if the item tag is present and contains this item's Java ID.
-
get
-