Class SwapPacket
java.lang.Object
com.hammy275.immersivemc.common.network.packet.SwapPacket
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.core.BlockPos
final net.minecraft.world.InteractionHand
final SwapMode
-
Constructor Summary
ConstructorsConstructorDescriptionSwapPacket
(net.minecraft.core.BlockPos block, List<Integer> slots, net.minecraft.world.InteractionHand hand, SwapMode mode) SwapPacket
(net.minecraft.core.BlockPos block, List<Integer> slots, net.minecraft.world.InteractionHand hand, SwapMode mode, SwapPacket.SwapDestination destination) -
Method Summary
Modifier and TypeMethodDescriptionstatic SwapPacket
decode
(net.minecraft.network.RegistryFriendlyByteBuf buffer) static void
encode
(SwapPacket packet, net.minecraft.network.RegistryFriendlyByteBuf buffer) static void
handle
(SwapPacket message, net.minecraft.server.level.ServerPlayer player)
-
Field Details
-
block
public final net.minecraft.core.BlockPos block -
slots
-
hand
public final net.minecraft.world.InteractionHand hand -
mode
-
destination
-
-
Constructor Details
-
SwapPacket
-
SwapPacket
public SwapPacket(net.minecraft.core.BlockPos block, List<Integer> slots, net.minecraft.world.InteractionHand hand, SwapMode mode, SwapPacket.SwapDestination destination)
-
-
Method Details
-
encode
-
decode
-
handle
-