Class JavaTakeItemEntityTranslator
java.lang.Object
org.geysermc.geyser.translator.protocol.PacketTranslator<com.github.steveice10.mc.protocol.packet.ingame.clientbound.entity.ClientboundTakeItemEntityPacket>
org.geysermc.geyser.translator.protocol.java.entity.JavaTakeItemEntityTranslator
public class JavaTakeItemEntityTranslator
extends PacketTranslator<com.github.steveice10.mc.protocol.packet.ingame.clientbound.entity.ClientboundTakeItemEntityPacket>
This packet is called whenever a player picks up an item.
In Java, this is called for item entities, experience orbs and arrows
Bedrock uses it for arrows and item entities, but not experience orbs.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
translate(GeyserSession session, com.github.steveice10.mc.protocol.packet.ingame.clientbound.entity.ClientboundTakeItemEntityPacket packet)
Methods inherited from class org.geysermc.geyser.translator.protocol.PacketTranslator
shouldExecuteInEventLoop
-
Constructor Details
-
JavaTakeItemEntityTranslator
public JavaTakeItemEntityTranslator()
-
-
Method Details
-
translate
public void translate(GeyserSession session, com.github.steveice10.mc.protocol.packet.ingame.clientbound.entity.ClientboundTakeItemEntityPacket packet)- Specified by:
translate
in classPacketTranslator<com.github.steveice10.mc.protocol.packet.ingame.clientbound.entity.ClientboundTakeItemEntityPacket>
-