Class TagCache

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

public 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.
  • Constructor Details

    • TagCache

      public TagCache()
  • Method Details

    • loadPacket

      public void loadPacket(com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundUpdateTagsPacket packet)
    • clear

      public void clear()
    • isFlower

      public boolean isFlower(ItemMapping mapping)
    • isFoxFood

      public boolean isFoxFood(ItemMapping mapping)
    • shouldPiglinAdmire

      public boolean shouldPiglinAdmire(ItemMapping mapping)
    • isAxeEffective

      public boolean isAxeEffective(BlockMapping blockMapping)
    • isHoeEffective

      public boolean isHoeEffective(BlockMapping blockMapping)
    • isPickaxeEffective

      public boolean isPickaxeEffective(BlockMapping blockMapping)
    • isShovelEffective

      public boolean isShovelEffective(BlockMapping blockMapping)
    • isShearsEffective

      public boolean isShearsEffective(BlockMapping blockMapping)
    • requiresStoneTool

      public boolean requiresStoneTool(BlockMapping blockMapping)
    • requiresIronTool

      public boolean requiresIronTool(BlockMapping blockMapping)
    • requiresDiamondTool

      public boolean requiresDiamondTool(BlockMapping blockMapping)