Class BackpackInteractPacket

java.lang.Object
com.hammy275.immersivemc.common.network.packet.BackpackInteractPacket

public class BackpackInteractPacket extends Object
  • Field Details

    • slot

      public final int slot
    • hand

      public final net.minecraft.world.InteractionHand hand
    • placementMode

      public final PlacementMode 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

      public static BackpackInteractPacket decode(net.minecraft.network.FriendlyByteBuf buffer)
    • handle

      public static void handle(BackpackInteractPacket message, net.minecraft.server.level.ServerPlayer player)