Class SendBackSlot

java.lang.Object
com.beansgalaxy.backpacks.network.clientbound.SendBackSlot
All Implemented Interfaces:
Packet2C

public class SendBackSlot extends Object implements Packet2C
  • Constructor Details

    • SendBackSlot

      public SendBackSlot(int entity, net.minecraft.world.item.ItemStack stack)
    • SendBackSlot

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

    • send

      public static void send(net.minecraft.world.entity.player.Player owner, net.minecraft.server.level.ServerPlayer sender)
    • send

      public static void send(net.minecraft.server.level.ServerPlayer owner)
    • getNetwork

      public Network2C getNetwork()
      Specified by:
      getNetwork in interface Packet2C
    • encode

      public void encode(net.minecraft.network.FriendlyByteBuf buf)
      Specified by:
      encode in interface Packet2C
    • handle

      public void handle()
      Specified by:
      handle in interface Packet2C
    • indexHeldSlots

      public static void indexHeldSlots()