Class User
java.lang.Object
com.github.retrooper.packetevents.protocol.player.User
- All Implemented Interfaces:
IRegistryHolder
-
Constructor Summary
ConstructorDescriptionUser
(Object channel, ConnectionState connectionState, ClientVersion clientVersion, UserProfile profile) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
Deprecated.int
int
int
getMinWorldHeight
(@Nullable ClientVersion version) getName()
@Nullable IRegistry
<?> getRegistry
(ResourceLocation registryKey, ClientVersion version) int
int
getTotalWorldHeight
(@Nullable ClientVersion version) getUUID()
@Nullable String
getWorldName
(int worldId) Deprecated.getWorldName
(Dimension dimension) Deprecated.@Nullable NBTCompound
getWorldNBT
(int worldId) Deprecated.@Nullable NBTCompound
getWorldNBT
(Dimension dimension) Deprecated.@Nullable NBTCompound
getWorldNBT
(String worldName) Deprecated.void
putRegistry
(IRegistry<?> registry) void
sendMessage
(String legacyMessage) void
sendMessage
(net.kyori.adventure.text.Component component) void
sendMessage
(net.kyori.adventure.text.Component component, ChatType type) void
sendPacket
(PacketWrapper<?> wrapper) void
sendPacket
(Object buffer) void
sendPacketSilently
(PacketWrapper<?> wrapper) void
sendTitle
(String legacyTitle, String legacySubtitle, int fadeInTicks, int stayTicks, int fadeOutTicks) void
sendTitle
(net.kyori.adventure.text.Component title, net.kyori.adventure.text.Component subtitle, int fadeInTicks, int stayTicks, int fadeOutTicks) void
setClientVersion
(ClientVersion clientVersion) void
setConnectionState
(ConnectionState connectionState) void
setDecoderState
(ConnectionState decoderState) void
setDefaultWorldHeights
(boolean extended) Deprecated.void
setDefaultWorldHeights
(ServerVersion version, Dimension dimension) Deprecated.void
setDimension
(Dimension dimension) Deprecated.void
setDimensionType
(DimensionType dimensionType) void
setEncoderState
(ConnectionState encoderState) void
setEntityId
(int entityId) void
setMinWorldHeight
(int minWorldHeight) Deprecated.void
setTotalWorldHeight
(int totalWorldHeight) Deprecated.void
setWorldNBT
(NBTList<NBTCompound> worldNBT) Deprecated.void
switchDimensionType
(ServerVersion version, Dimension dimension) Deprecated.void
writePacket
(PacketWrapper<?> wrapper) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.retrooper.packetevents.util.mappings.IRegistryHolder
getRegistry, getRegistryOr, getRegistryOr
-
Constructor Details
-
User
public User(Object channel, ConnectionState connectionState, ClientVersion clientVersion, UserProfile profile)
-
-
Method Details
-
getRegistry
@Internal @Nullable public @Nullable IRegistry<?> getRegistry(ResourceLocation registryKey, ClientVersion version) - Specified by:
getRegistry
in interfaceIRegistryHolder
-
putRegistry
-
getChannel
-
getAddress
-
getConnectionState
-
setConnectionState
-
getDecoderState
-
setDecoderState
-
getEncoderState
-
setEncoderState
-
getClientVersion
-
setClientVersion
-
getProfile
-
getName
-
getUUID
-
getEntityId
public int getEntityId() -
setEntityId
public void setEntityId(int entityId) -
sendPacket
-
sendPacket
-
sendPacketSilently
-
writePacket
-
flushPackets
public void flushPackets() -
closeConnection
public void closeConnection() -
closeInventory
public void closeInventory() -
sendMessage
-
sendMessage
public void sendMessage(net.kyori.adventure.text.Component component) -
sendMessage
-
sendTitle
-
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
-
getTotalWorldHeight
public int getTotalWorldHeight() -
getTotalWorldHeight
-
getDimensionType
-
setDimensionType
-
setMinWorldHeight
Deprecated. -
setTotalWorldHeight
Deprecated. -
switchDimensionType
Deprecated. -
setDefaultWorldHeights
Deprecated. -
setDefaultWorldHeights
Deprecated. -
setWorldNBT
Deprecated. -
getDimension
Deprecated. -
setDimension
Deprecated. -
getWorldNBT
Deprecated. -
getWorldNBT
Deprecated. -
getWorldNBT
Deprecated. -
getWorldName
Deprecated. -
getWorldName
Deprecated.
-