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

public class SwapPacket extends Object
  • Field Details

    • block

      public final net.minecraft.core.BlockPos block
    • slot

      public final int slot
    • hand

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

      public PlacementMode placementMode
  • Constructor Details

    • SwapPacket

      public SwapPacket(net.minecraft.core.BlockPos block, int slot, net.minecraft.world.InteractionHand hand)
  • Method Details

    • encode

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

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

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