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 TypeMethodDescriptionvoidclear()booleanisAxeEffective(BlockMapping blockMapping) booleanisAxolotlTemptItem(Item item) booleanisCreeperIgniter(Item item) booleanisFish(GeyserItemStack itemStack) booleanbooleanbooleanisHoeEffective(BlockMapping blockMapping) booleanisPickaxeEffective(BlockMapping blockMapping) booleanisShearsEffective(BlockMapping blockMapping) booleanisShovelEffective(BlockMapping blockMapping) booleanisSmallFlower(GeyserItemStack itemStack) booleanisSnifferFood(Item item) voidloadPacket(GeyserSession session, com.github.steveice10.mc.protocol.packet.common.clientbound.ClientboundUpdateTagsPacket packet) booleanrequiresDiamondTool(BlockMapping blockMapping) booleanrequiresIronTool(BlockMapping blockMapping) booleanrequiresStoneTool(BlockMapping blockMapping) booleanshouldPiglinAdmire(Item item)
-
Constructor Details
-
TagCache
public TagCache()
-
-
Method Details
-
loadPacket
public void loadPacket(GeyserSession session, com.github.steveice10.mc.protocol.packet.common.clientbound.ClientboundUpdateTagsPacket packet) -
clear
public void clear() -
isAxolotlTemptItem
-
isCreeperIgniter
-
isFish
-
isFlower
-
isFoxFood
-
shouldPiglinAdmire
-
isSmallFlower
-
isSnifferFood
-
isAxeEffective
-
isHoeEffective
-
isPickaxeEffective
-
isShovelEffective
-
isShearsEffective
-
requiresStoneTool
-
requiresIronTool
-
requiresDiamondTool
-