Class ClientboundTakeItemEntityPacket

java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.ClientboundTakeItemEntityPacket
All Implemented Interfaces:
Packet, MinecraftPacket

public class ClientboundTakeItemEntityPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundTakeItemEntityPacket

      public ClientboundTakeItemEntityPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper)
    • ClientboundTakeItemEntityPacket

      public ClientboundTakeItemEntityPacket(int collectedEntityId, int collectorEntityId, int itemCount)
  • Method Details

    • serialize

      public void serialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper)
      Specified by:
      serialize in interface MinecraftPacket
    • getCollectedEntityId

      public int getCollectedEntityId()
    • getCollectorEntityId

      public int getCollectorEntityId()
    • getItemCount

      public int getItemCount()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object
    • withCollectedEntityId

      public @NonNull ClientboundTakeItemEntityPacket withCollectedEntityId(int collectedEntityId)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withCollectorEntityId

      public @NonNull ClientboundTakeItemEntityPacket withCollectorEntityId(int collectorEntityId)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withItemCount

      public @NonNull ClientboundTakeItemEntityPacket withItemCount(int itemCount)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).