Class SendEnderDisplay

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

public class SendEnderDisplay extends Object implements Packet2C
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.network.chat.Component
     
    final net.minecraft.nbt.CompoundTag
     
    final UUID
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SendEnderDisplay(UUID uuid, net.minecraft.nbt.CompoundTag trim, net.minecraft.network.chat.Component playerName, boolean locked)
     
    SendEnderDisplay(net.minecraft.network.FriendlyByteBuf buf)
     
  • Method Summary

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

    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

    • uuid

      public final UUID uuid
    • playerName

      public final net.minecraft.network.chat.Component playerName
    • trim

      public final net.minecraft.nbt.CompoundTag trim
  • Constructor Details

    • SendEnderDisplay

      public SendEnderDisplay(net.minecraft.network.FriendlyByteBuf buf)
    • SendEnderDisplay

      public SendEnderDisplay(UUID uuid, net.minecraft.nbt.CompoundTag trim, net.minecraft.network.chat.Component playerName, boolean locked)
  • Method Details

    • send

      public static void send(net.minecraft.server.level.ServerPlayer sender, UUID owner)
    • send

      public static void send(net.minecraft.world.entity.player.Player player)
    • 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