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

public class SyncViewers extends Object implements Packet2C
  • Constructor Summary

    Constructors
    Constructor
    Description
    SyncViewers(int entityId, byte viewers)
     
    SyncViewers(net.minecraft.network.FriendlyByteBuf byteBuf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encode(net.minecraft.network.FriendlyByteBuf byteBuf)
     
    void
     
    static void
    send(net.minecraft.world.entity.Entity owner, byte viewers)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SyncViewers

      public SyncViewers(int entityId, byte viewers)
    • SyncViewers

      public SyncViewers(net.minecraft.network.FriendlyByteBuf byteBuf)
  • Method Details

    • send

      public static void send(net.minecraft.world.entity.Entity owner, byte viewers)
    • encode

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

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