java.lang.Object
com.github.retrooper.packetevents.protocol.player.User
All Implemented Interfaces:
IRegistryHolder

public class User extends Object implements IRegistryHolder
  • Constructor Details

  • Method Details

    • getRegistry

      @Internal @Nullable public @Nullable IRegistry<?> getRegistry(ResourceLocation registryKey, ClientVersion version)
      Specified by:
      getRegistry in interface IRegistryHolder
    • putRegistry

      @Internal public void putRegistry(IRegistry<?> registry)
    • getChannel

      public Object getChannel()
    • getAddress

      public InetSocketAddress getAddress()
    • getConnectionState

      public ConnectionState getConnectionState()
    • setConnectionState

      public void setConnectionState(ConnectionState connectionState)
    • getDecoderState

      public ConnectionState getDecoderState()
    • setDecoderState

      public void setDecoderState(ConnectionState decoderState)
    • getEncoderState

      public ConnectionState getEncoderState()
    • setEncoderState

      public void setEncoderState(ConnectionState encoderState)
    • getClientVersion

      public ClientVersion getClientVersion()
    • setClientVersion

      public void setClientVersion(ClientVersion clientVersion)
    • getProfile

      public UserProfile getProfile()
    • getName

      public String getName()
    • getUUID

      public UUID getUUID()
    • getEntityId

      public int getEntityId()
    • setEntityId

      public void setEntityId(int entityId)
    • sendPacket

      public void sendPacket(Object buffer)
    • sendPacket

      public void sendPacket(PacketWrapper<?> wrapper)
    • sendPacketSilently

      public void sendPacketSilently(PacketWrapper<?> wrapper)
    • writePacket

      public void writePacket(PacketWrapper<?> wrapper)
    • flushPackets

      public void flushPackets()
    • closeConnection

      public void closeConnection()
    • closeInventory

      public void closeInventory()
    • sendMessage

      public void sendMessage(String legacyMessage)
    • sendMessage

      public void sendMessage(net.kyori.adventure.text.Component component)
    • sendMessage

      public void sendMessage(net.kyori.adventure.text.Component component, ChatType type)
    • sendTitle

      public void sendTitle(String legacyTitle, String legacySubtitle, int fadeInTicks, int stayTicks, int fadeOutTicks)
    • sendTitle

      public void sendTitle(net.kyori.adventure.text.Component title, net.kyori.adventure.text.Component subtitle, int fadeInTicks, int stayTicks, int fadeOutTicks)
    • getMinWorldHeight

      public int getMinWorldHeight()
    • getMinWorldHeight

      public int getMinWorldHeight(@Nullable @Nullable ClientVersion version)
    • getTotalWorldHeight

      public int getTotalWorldHeight()
    • getTotalWorldHeight

      public int getTotalWorldHeight(@Nullable @Nullable ClientVersion version)
    • getDimensionType

      public DimensionType getDimensionType()
    • setDimensionType

      @Internal public void setDimensionType(DimensionType dimensionType)
    • setMinWorldHeight

      @Deprecated public void setMinWorldHeight(int minWorldHeight)
      Deprecated.
    • setTotalWorldHeight

      @Deprecated public void setTotalWorldHeight(int totalWorldHeight)
      Deprecated.
    • switchDimensionType

      @Deprecated public void switchDimensionType(ServerVersion version, Dimension dimension)
      Deprecated.
    • setDefaultWorldHeights

      @Deprecated public void setDefaultWorldHeights(ServerVersion version, Dimension dimension)
      Deprecated.
    • setDefaultWorldHeights

      @Deprecated public void setDefaultWorldHeights(boolean extended)
      Deprecated.
    • setWorldNBT

      @Deprecated public void setWorldNBT(NBTList<NBTCompound> worldNBT)
      Deprecated.
    • getDimension

      @Deprecated public Dimension getDimension()
      Deprecated.
    • setDimension

      @Deprecated public void setDimension(Dimension dimension)
      Deprecated.
    • getWorldNBT

      @Deprecated @Nullable public @Nullable NBTCompound getWorldNBT(String worldName)
      Deprecated.
    • getWorldNBT

      @Deprecated @Nullable public @Nullable NBTCompound getWorldNBT(int worldId)
      Deprecated.
    • getWorldNBT

      @Deprecated @Nullable public @Nullable NBTCompound getWorldNBT(Dimension dimension)
      Deprecated.
    • getWorldName

      @Deprecated @Nullable public @Nullable String getWorldName(int worldId)
      Deprecated.
    • getWorldName

      @Deprecated public String getWorldName(Dimension dimension)
      Deprecated.