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 int
collectorEntityId
private int
entityId
private int
stackAmount
-
Constructor Summary
Constructors Constructor Description ItemPickupAnimationS2CPacket()
ItemPickupAnimationS2CPacket(int entityId, int collectorId, int stackAmount)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
int
getCollectorEntityId()
int
getEntityId()
int
getStackAmount()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
getEntityId
@Environment(CLIENT) public int getEntityId() -
getCollectorEntityId
@Environment(CLIENT) public int getCollectorEntityId() -
getStackAmount
@Environment(CLIENT) public int getStackAmount()
-