Class TagCache
java.lang.Object
org.geysermc.geyser.session.cache.registry.TagCache
Manages information sent from the
ClientboundUpdateTagsPacket. If that packet is not sent, all lists here
will remain empty, matching Java Edition behavior. Looking up a tag that wasn't listed in that packet will return an empty array.
Only tags from registries in JavaRegistries are stored. Read JavaRegistryKey for more information.-
Method Summary
Modifier and TypeMethodDescription@NonNull it.unimi.dsi.fastutil.ints.IntListvoidloadPacket(Optional<GeyserSession> session, org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundUpdateTagsPacket packet) Collection<Tag<?>> tags()
-
Method Details
-
loadPacket
public void loadPacket(Optional<GeyserSession> session, org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundUpdateTagsPacket packet) -
get
- Returns:
- the network IDs in the given tag. This can be an empty list.
-
tags
-