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)booleanisFlower(ItemMapping mapping)booleanisFoxFood(ItemMapping mapping)booleanisHoeEffective(BlockMapping blockMapping)booleanisPickaxeEffective(BlockMapping blockMapping)booleanisShearsEffective(BlockMapping blockMapping)booleanisShovelEffective(BlockMapping blockMapping)voidloadPacket(GeyserSession session, com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundUpdateTagsPacket packet)booleanrequiresDiamondTool(BlockMapping blockMapping)booleanrequiresIronTool(BlockMapping blockMapping)booleanrequiresStoneTool(BlockMapping blockMapping)booleanshouldPiglinAdmire(ItemMapping mapping)
-
Constructor Details
-
TagCache
public TagCache()
-
-
Method Details
-
loadPacket
public void loadPacket(GeyserSession session, com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundUpdateTagsPacket packet) -
clear
public void clear() -
isFlower
-
isFoxFood
-
shouldPiglinAdmire
-
isAxeEffective
-
isHoeEffective
-
isPickaxeEffective
-
isShovelEffective
-
isShearsEffective
-
requiresStoneTool
-
requiresIronTool
-
requiresDiamondTool
-