-
Constructor Summary
Constructors
ActionKey(net.minecraft.network.FriendlyByteBuf buf)
-
Method Summary
void
encode(net.minecraft.network.FriendlyByteBuf buf)
void
handle(net.minecraft.server.level.ServerPlayer sender)
static void
send(boolean actionKeyPressed)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ActionKey
public ActionKey(boolean actionKeyPressed)
-
ActionKey
public ActionKey(net.minecraft.network.FriendlyByteBuf buf)
-
Method Details
-
send
public static void send(boolean actionKeyPressed)
-
encode
public void encode(net.minecraft.network.FriendlyByteBuf buf)
- Specified by:
encode in interface Packet2S
-
handle
public void handle(net.minecraft.server.level.ServerPlayer sender)
- Specified by:
handle in interface Packet2S