Class GrabItemPacket
java.lang.Object
com.hammy275.immersivemc.common.network.packet.GrabItemPacket
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGrabItemPacket
(int entityId) GrabItemPacket
(net.minecraft.world.entity.item.ItemEntity item) -
Method Summary
Modifier and TypeMethodDescriptionstatic GrabItemPacket
decode
(net.minecraft.network.FriendlyByteBuf buffer) static void
encode
(GrabItemPacket packet, net.minecraft.network.FriendlyByteBuf buffer) static void
handle
(GrabItemPacket packet, net.minecraft.server.level.ServerPlayer player)
-
Field Details
-
entityId
public final int entityId
-
-
Constructor Details
-
GrabItemPacket
public GrabItemPacket(net.minecraft.world.entity.item.ItemEntity item) -
GrabItemPacket
public GrabItemPacket(int entityId)
-
-
Method Details
-
encode
-
decode
-
handle
-