Class ItemPickupAnimationS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.ItemPickupAnimationS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class ItemPickupAnimationS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private intcollectorEntityIdprivate intentityIdprivate intstackAmount -
Constructor Summary
Constructors Constructor Description ItemPickupAnimationS2CPacket()ItemPickupAnimationS2CPacket(int entityId, int collectorId, int stackAmount) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)intgetCollectorEntityId()intgetEntityId()intgetStackAmount()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
entityId
private int entityId -
collectorEntityId
private int collectorEntityId -
stackAmount
private int stackAmount
-
-
Constructor Details
-
ItemPickupAnimationS2CPacket
public ItemPickupAnimationS2CPacket() -
ItemPickupAnimationS2CPacket
public ItemPickupAnimationS2CPacket(int entityId, int collectorId, int stackAmount)
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getEntityId
@Environment(CLIENT) public int getEntityId() -
getCollectorEntityId
@Environment(CLIENT) public int getCollectorEntityId() -
getStackAmount
@Environment(CLIENT) public int getStackAmount()
-