java.lang.Object
org.geysermc.geyser.session.cache.registry.TagCache

public final class TagCache extends Object
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 Details

    • loadPacket

      public void loadPacket(Optional<GeyserSession> session, org.geysermc.mcprotocollib.protocol.packet.common.clientbound.ClientboundUpdateTagsPacket packet)
    • get

      public @NonNull it.unimi.dsi.fastutil.ints.IntList get(@NonNull Tag<?> tag)
      Returns:
      the network IDs in the given tag. This can be an empty list.
    • tags

      public Collection<Tag<?>> tags()