Class BackpackInteractPacket
java.lang.Object
com.hammy275.immersivemc.common.network.packet.BackpackInteractPacket
-
Field Summary
Modifier and TypeFieldDescriptionfinal net.minecraft.world.InteractionHand
final PlacementMode
final int
-
Constructor Summary
ConstructorDescriptionBackpackInteractPacket
(int slot, net.minecraft.world.InteractionHand hand) BackpackInteractPacket
(int slot, net.minecraft.world.InteractionHand hand, PlacementMode placementMode) -
Method Summary
Modifier and TypeMethodDescriptionstatic BackpackInteractPacket
decode
(net.minecraft.network.FriendlyByteBuf buffer) static void
encode
(BackpackInteractPacket packet, net.minecraft.network.FriendlyByteBuf buffer) static void
handle
(BackpackInteractPacket message, net.minecraft.server.level.ServerPlayer player)
-
Field Details
-
slot
public final int slot -
hand
public final net.minecraft.world.InteractionHand hand -
placementMode
-
-
Constructor Details
-
BackpackInteractPacket
public BackpackInteractPacket(int slot, net.minecraft.world.InteractionHand hand) -
BackpackInteractPacket
public BackpackInteractPacket(int slot, net.minecraft.world.InteractionHand hand, PlacementMode placementMode)
-
-
Method Details
-
encode
public static void encode(BackpackInteractPacket packet, net.minecraft.network.FriendlyByteBuf buffer) -
decode
-
handle
public static void handle(BackpackInteractPacket message, net.minecraft.server.level.ServerPlayer player)
-