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

public class ActionKey extends Object implements Packet2S
  • Constructor Summary

    Constructors
    Constructor
    Description
    ActionKey(boolean actionKeyPressed)
     
    ActionKey(net.minecraft.network.FriendlyByteBuf buf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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