java.lang.Object
com.beansgalaxy.backpacks.network.serverbound.ActionKey
All Implemented Interfaces:
Packet2S

public class ActionKey extends Object implements Packet2S
  • Constructor Details

    • ActionKey

      public ActionKey(boolean actionKeyPressed)
    • ActionKey

      public ActionKey(net.minecraft.network.FriendlyByteBuf buf)
  • Method Details

    • send

      public static void send(boolean actionKeyPressed)
    • getNetwork

      public Network2S getNetwork()
      Specified by:
      getNetwork in interface Packet2S
    • 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