Class SyncBackSlot

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

public class SyncBackSlot extends Object implements Packet2C
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
     
    int
     
    final net.minecraft.world.item.ItemStack
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SyncBackSlot(int entity, net.minecraft.world.item.ItemStack stack)
     
    SyncBackSlot(net.minecraft.network.FriendlyByteBuf buf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encode(net.minecraft.network.FriendlyByteBuf buf)
     
     
    void
     
    static void
     
    static void
    send(net.minecraft.server.level.ServerPlayer owner)
     
    static void
    send(net.minecraft.world.entity.player.Player owner, net.minecraft.server.level.ServerPlayer sender)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.beansgalaxy.backpacks.network.clientbound.Packet2C

    send2A, send2C
  • Field Details

    • failedSyncAttempts

      public int failedSyncAttempts
    • entity

      public final int entity
    • stack

      public final net.minecraft.world.item.ItemStack stack
  • Constructor Details

    • SyncBackSlot

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

      public SyncBackSlot(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()