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