Class ClientboundTakeItemEntityPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.ClientboundTakeItemEntityPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundTakeItemEntityPacket(int collectedEntityId, int collectorEntityId, int itemCount) ClientboundTakeItemEntityPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintintintinthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundTakeItemEntityPacketwithCollectedEntityId(int collectedEntityId) @NonNull ClientboundTakeItemEntityPacketwithCollectorEntityId(int collectorEntityId) @NonNull ClientboundTakeItemEntityPacketwithItemCount(int itemCount) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority
-
Constructor Details
-
ClientboundTakeItemEntityPacket
-
ClientboundTakeItemEntityPacket
public ClientboundTakeItemEntityPacket(int collectedEntityId, int collectorEntityId, int itemCount)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getCollectedEntityId
public int getCollectedEntityId() -
getCollectorEntityId
public int getCollectorEntityId() -
getItemCount
public int getItemCount() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withCollectedEntityId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCollectorEntityId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withItemCount
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-