Class InventorySwapPacket

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

public class InventorySwapPacket extends Object
  • Field Details

    • slot

      public final int slot
    • placementMode

      public PlacementMode placementMode
  • Constructor Details

    • InventorySwapPacket

      public InventorySwapPacket(int invSlotRaw)
  • Method Details

    • encode

      public static void encode(InventorySwapPacket packet, net.minecraft.network.FriendlyByteBuf buffer)
    • decode

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

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