public class UsePacket
extends Object
-
Field Summary
Fields
final net.minecraft.core.BlockPos
-
Constructor Summary
Constructors
-
Method Summary
decode(net.minecraft.network.FriendlyByteBuf buffer)
static void
static void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
pos
public final net.minecraft.core.BlockPos pos
-
Constructor Details
-
UsePacket
public UsePacket(net.minecraft.core.BlockPos pos)
-
Method Details
-
encode
public static void encode(UsePacket message,
net.minecraft.network.FriendlyByteBuf buffer)
-
decode
public static UsePacket decode(net.minecraft.network.FriendlyByteBuf buffer)
-
handle
public static void handle(UsePacket packet,
net.minecraft.server.level.ServerPlayer player)