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 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 class PacketTranslator<com.github.steveice10.mc.protocol.packet.ingame.clientbound.entity.ClientboundTakeItemEntityPacket>