Class PacketWrapper<T extends PacketWrapper<T>>
java.lang.Object
com.github.retrooper.packetevents.wrapper.PacketWrapper<T>
- Direct Known Subclasses:
WrapperCommonClientSettings
,WrapperCommonCookieResponse
,WrapperCommonServerCustomReportDetails
,WrapperCommonServerServerLinks
,WrapperConfigClientConfigurationEndAck
,WrapperConfigClientKeepAlive
,WrapperConfigClientPluginMessage
,WrapperConfigClientPong
,WrapperConfigClientResourcePackStatus
,WrapperConfigClientSelectKnownPacks
,WrapperConfigServerConfigurationEnd
,WrapperConfigServerCookieRequest
,WrapperConfigServerDisconnect
,WrapperConfigServerKeepAlive
,WrapperConfigServerPluginMessage
,WrapperConfigServerRegistryData
,WrapperConfigServerResetChat
,WrapperConfigServerResourcePackRemove
,WrapperConfigServerResourcePackSend
,WrapperConfigServerSelectKnownPacks
,WrapperConfigServerStoreCookie
,WrapperConfigServerTransfer
,WrapperConfigServerUpdateEnabledFeatures
,WrapperHandshakingClientHandshake
,WrapperLoginClientEncryptionResponse
,WrapperLoginClientLoginStart
,WrapperLoginClientLoginSuccessAck
,WrapperLoginClientPluginResponse
,WrapperLoginServerCookieRequest
,WrapperLoginServerDisconnect
,WrapperLoginServerEncryptionRequest
,WrapperLoginServerLoginSuccess
,WrapperLoginServerPluginRequest
,WrapperLoginServerSetCompression
,WrapperPlayClientAdvancementTab
,WrapperPlayClientAnimation
,WrapperPlayClientChatAck
,WrapperPlayClientChatCommand
,WrapperPlayClientChatCommandUnsigned
,WrapperPlayClientChatMessage
,WrapperPlayClientChatPreview
,WrapperPlayClientChatSessionUpdate
,WrapperPlayClientChunkBatchAck
,WrapperPlayClientClickWindow
,WrapperPlayClientClickWindowButton
,WrapperPlayClientClientStatus
,WrapperPlayClientClientTickEnd
,WrapperPlayClientCloseWindow
,WrapperPlayClientConfigurationAck
,WrapperPlayClientCraftRecipeRequest
,WrapperPlayClientCreativeInventoryAction
,WrapperPlayClientDebugPing
,WrapperPlayClientDebugSampleSubscription
,WrapperPlayClientEditBook
,WrapperPlayClientEntityAction
,WrapperPlayClientGenerateStructure
,WrapperPlayClientHeldItemChange
,WrapperPlayClientInteractEntity
,WrapperPlayClientKeepAlive
,WrapperPlayClientLockDifficulty
,WrapperPlayClientNameItem
,WrapperPlayClientPickItem
,WrapperPlayClientPickItemFromBlock
,WrapperPlayClientPickItemFromEntity
,WrapperPlayClientPlayerAbilities
,WrapperPlayClientPlayerBlockPlacement
,WrapperPlayClientPlayerDigging
,WrapperPlayClientPlayerFlying
,WrapperPlayClientPlayerInput
,WrapperPlayClientPlayerLoaded
,WrapperPlayClientPluginMessage
,WrapperPlayClientPong
,WrapperPlayClientQueryBlockNBT
,WrapperPlayClientQueryEntityNBT
,WrapperPlayClientResourcePackStatus
,WrapperPlayClientSelectBundleItem
,WrapperPlayClientSelectTrade
,WrapperPlayClientSetBeaconEffect
,WrapperPlayClientSetDifficulty
,WrapperPlayClientSetDisplayedRecipe
,WrapperPlayClientSetRecipeBookState
,WrapperPlayClientSlotStateChange
,WrapperPlayClientSpectate
,WrapperPlayClientSteerBoat
,WrapperPlayClientSteerVehicle
,WrapperPlayClientTabComplete
,WrapperPlayClientTeleportConfirm
,WrapperPlayClientUpdateCommandBlock
,WrapperPlayClientUpdateCommandBlockMinecart
,WrapperPlayClientUpdateJigsawBlock
,WrapperPlayClientUpdateSign
,WrapperPlayClientUseItem
,WrapperPlayClientVehicleMove
,WrapperPlayClientWindowConfirmation
,WrapperPlayServerAcknowledgeBlockChanges
,WrapperPlayServerAcknowledgePlayerDigging
,WrapperPlayServerActionBar
,WrapperPlayServerAttachEntity
,WrapperPlayServerBlockAction
,WrapperPlayServerBlockBreakAnimation
,WrapperPlayServerBlockChange
,WrapperPlayServerBlockEntityData
,WrapperPlayServerBossBar
,WrapperPlayServerBundle
,WrapperPlayServerCamera
,WrapperPlayServerChangeGameState
,WrapperPlayServerChatMessage
,WrapperPlayServerChatPreview
,WrapperPlayServerChunkBatchBegin
,WrapperPlayServerChunkBatchEnd
,WrapperPlayServerChunkData
,WrapperPlayServerChunkDataBulk
,WrapperPlayServerClearTitles
,WrapperPlayServerCloseWindow
,WrapperPlayServerCollectItem
,WrapperPlayServerCombatEvent
,WrapperPlayServerConfigurationStart
,WrapperPlayServerCookieRequest
,WrapperPlayServerCraftRecipeResponse
,WrapperPlayServerCustomChatCompletions
,WrapperPlayServerDamageEvent
,WrapperPlayServerDeathCombatEvent
,WrapperPlayServerDebugPong
,WrapperPlayServerDebugSample
,WrapperPlayServerDeclareCommands
,WrapperPlayServerDeclareRecipes
,WrapperPlayServerDeleteChat
,WrapperPlayServerDestroyEntities
,WrapperPlayServerDifficulty
,WrapperPlayServerDisconnect
,WrapperPlayServerDisguisedChat
,WrapperPlayServerDisplayScoreboard
,WrapperPlayServerEndCombatEvent
,WrapperPlayServerEnterCombatEvent
,WrapperPlayServerEntityAnimation
,WrapperPlayServerEntityEffect
,WrapperPlayServerEntityEquipment
,WrapperPlayServerEntityHeadLook
,WrapperPlayServerEntityMetadata
,WrapperPlayServerEntityMovement
,WrapperPlayServerEntityPositionSync
,WrapperPlayServerEntityRelativeMove
,WrapperPlayServerEntityRelativeMoveAndRotation
,WrapperPlayServerEntityRotation
,WrapperPlayServerEntitySoundEffect
,WrapperPlayServerEntityStatus
,WrapperPlayServerEntityTeleport
,WrapperPlayServerEntityVelocity
,WrapperPlayServerExplosion
,WrapperPlayServerFacePlayer
,WrapperPlayServerHeldItemChange
,WrapperPlayServerHurtAnimation
,WrapperPlayServerInitializeWorldBorder
,WrapperPlayServerJoinGame
,WrapperPlayServerKeepAlive
,WrapperPlayServerMapData
,WrapperPlayServerMerchantOffers
,WrapperPlayServerMoveMinecart
,WrapperPlayServerMultiBlockChange
,WrapperPlayServerNBTQueryResponse
,WrapperPlayServerOpenBook
,WrapperPlayServerOpenHorseWindow
,WrapperPlayServerOpenSignEditor
,WrapperPlayServerOpenWindow
,WrapperPlayServerParticle
,WrapperPlayServerPing
,WrapperPlayServerPlayerAbilities
,WrapperPlayServerPlayerChatHeader
,WrapperPlayServerPlayerInfo
,WrapperPlayServerPlayerInfoRemove
,WrapperPlayServerPlayerInfoUpdate
,WrapperPlayServerPlayerListHeaderAndFooter
,WrapperPlayServerPlayerPositionAndLook
,WrapperPlayServerPlayerRotation
,WrapperPlayServerPluginMessage
,WrapperPlayServerProjectilePower
,WrapperPlayServerRecipeBookAdd
,WrapperPlayServerRecipeBookRemove
,WrapperPlayServerRecipeBookSettings
,WrapperPlayServerRemoveEntityEffect
,WrapperPlayServerResetScore
,WrapperPlayServerResourcePackRemove
,WrapperPlayServerResourcePackSend
,WrapperPlayServerRespawn
,WrapperPlayServerScoreboardObjective
,WrapperPlayServerSelectAdvancementsTab
,WrapperPlayServerServerData
,WrapperPlayServerSetCompression
,WrapperPlayServerSetCooldown
,WrapperPlayServerSetCursorItem
,WrapperPlayServerSetDisplayChatPreview
,WrapperPlayServerSetExperience
,WrapperPlayServerSetPassengers
,WrapperPlayServerSetPlayerInventory
,WrapperPlayServerSetSlot
,WrapperPlayServerSetTitleSubtitle
,WrapperPlayServerSetTitleText
,WrapperPlayServerSetTitleTimes
,WrapperPlayServerSoundEffect
,WrapperPlayServerSpawnEntity
,WrapperPlayServerSpawnExperienceOrb
,WrapperPlayServerSpawnLivingEntity
,WrapperPlayServerSpawnPainting
,WrapperPlayServerSpawnPlayer
,WrapperPlayServerSpawnPosition
,WrapperPlayServerSpawnWeatherEntity
,WrapperPlayServerStoreCookie
,WrapperPlayServerSystemChatMessage
,WrapperPlayServerTabComplete
,WrapperPlayServerTags
,WrapperPlayServerTeams
,WrapperPlayServerTickingState
,WrapperPlayServerTickingStep
,WrapperPlayServerTimeUpdate
,WrapperPlayServerTitle
,WrapperPlayServerTransfer
,WrapperPlayServerUnloadChunk
,WrapperPlayServerUpdateAttributes
,WrapperPlayServerUpdateEnabledFeatures
,WrapperPlayServerUpdateEntityNBT
,WrapperPlayServerUpdateHealth
,WrapperPlayServerUpdateLight
,WrapperPlayServerUpdateScore
,WrapperPlayServerUpdateSimulationDistance
,WrapperPlayServerUpdateViewDistance
,WrapperPlayServerUpdateViewPosition
,WrapperPlayServerUseBed
,WrapperPlayServerVehicleMove
,WrapperPlayServerWindowConfirmation
,WrapperPlayServerWindowItems
,WrapperPlayServerWindowProperty
,WrapperPlayServerWorldBorder
,WrapperPlayServerWorldBorderCenter
,WrapperPlayServerWorldBorderSize
,WrapperPlayServerWorldBorderWarningReach
,WrapperPlayWorldBorderLerpSize
,WrapperPlayWorldBorderWarningDelay
,WrapperStatusClientPing
,WrapperStatusClientRequest
,WrapperStatusServerPong
,WrapperStatusServerResponse
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
Modifier and TypeFieldDescription@Nullable Object
final Object
protected ClientVersion
protected ServerVersion
protected @Nullable User
-
Constructor Summary
ConstructorDescriptionPacketWrapper
(int packetID) PacketWrapper
(int packetID, ClientVersion clientVersion) PacketWrapper
(PacketReceiveEvent event) PacketWrapper
(PacketReceiveEvent event, boolean readData) PacketWrapper
(PacketSendEvent event) PacketWrapper
(PacketSendEvent event, boolean readData) PacketWrapper
(PacketTypeCommon packetType) PacketWrapper
(ClientVersion clientVersion, ServerVersion serverVersion, int packetID) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static PacketWrapper
<?> createUniversalPacketWrapper
(Object byteBuf) static long
getChunkKey
(int chunkX, int chunkZ) static int
getChunkX
(long chunkKey) static int
getChunkZ
(long chunkKey) int
int
int
Deprecated.static <K> IntFunction
<K> limitValue
(IntFunction<K> function, int limit) final void
prepareForSend
(Object channel, boolean outgoing) final void
prepareForSend
(Object channel, boolean outgoing, boolean proxy) void
read()
<K> K[]
readArray
(PacketWrapper.Reader<K> reader, Class<K> clazz) boolean
byte
readByte()
byte[]
byte[]
readByteArray
(int maxLength) byte[]
readByteArrayOfSize
(int size) byte[]
readBytes
(int size) <K,
C extends Collection<K>>
CreadCollection
(IntFunction<C> function, PacketWrapper.Reader<K> reader) net.kyori.adventure.text.Component
net.kyori.adventure.text.Component
net.kyori.adventure.text.Component
Deprecated.int
Deprecated.double
<Z extends Enum<?>>
Z<Z extends Enum<?>>
ZreadEnum
(Z[] values) readEnumSet
(Class<T> enumClazz) final void
readEvent
(ProtocolPacketEvent event) float
readIdentifier
(int maxLen) int
readInt()
@NotNull ItemStack
<K> List
<K> readList
(PacketWrapper.Reader<K> reader) long
readLong()
long[]
long[]
readLongArray
(int size) <K,
V> Map <K, V> readMap
(PacketWrapper.Reader<K> keyFunction, PacketWrapper.Reader<V> valueFunction) <Z extends MappedEntity>
ZreadMappedEntity
(IRegistry<Z> registry) <Z extends MappedEntity>
ZreadMappedEntity
(BiFunction<ClientVersion, Integer, Z> getter) <Z extends MappedEntity>
ZreadMappedEntityOrDirect
(IRegistry<Z> registry, PacketWrapper.Reader<Z> directReader) <Z extends MappedEntity>
ZreadMappedEntityOrDirect
(BiFunction<ClientVersion, Integer, Z> getter, PacketWrapper.Reader<Z> directReader) int
<U,
V, R> U readMultiVersional
(VersionComparison version, ServerVersion target, PacketWrapper.Reader<V> first, PacketWrapper.Reader<R> second) readNBT()
readNode()
@Nullable Integer
<R> R
readOptional
(PacketWrapper.Reader<R> reader) byte[]
float
short
readString
(int maxLen) net.kyori.adventure.text.format.Style
short
int
readUUID()
int
int[]
int[]
readVarIntArrayOfSize
(int size) long
int
void
void
Deprecated.void
void
setClientVersion
(ClientVersion clientVersion) void
setNativePacketId
(int nativePacketId) void
setPacketId
(int packetID) Deprecated.void
setServerVersion
(ServerVersion serverVersion) void
write()
<K> void
writeArray
(K[] array, PacketWrapper.Writer<K> writer) void
writeBitSet
(BitSet bitSet) void
void
writeBoolean
(boolean value) void
writeByte
(int value) void
writeByteArray
(byte[] array) void
writeByteArrayOfSize
(byte[] array) void
writeBytes
(byte[] array) void
writeChatTypeBoundNetwork
(ChatType.Bound chatFormatting) <K> void
writeCollection
(Collection<K> collection, PacketWrapper.Writer<K> writer) void
writeComponent
(net.kyori.adventure.text.Component component) void
writeComponentAsJSON
(net.kyori.adventure.text.Component component) void
writeComponentAsNBT
(net.kyori.adventure.text.Component component) void
writeComponentJSON
(String json) Deprecated.void
writeContainerId
(int containerId) void
writeDimension
(Dimension dimension) Deprecated.void
writeDouble
(double value) void
writeEntityMetadata
(EntityMetadataProvider metadata) void
writeEntityMetadata
(List<EntityData> list) void
<T extends Enum<T>>
voidwriteEnumSet
(EnumSet<T> set, Class<T> enumClazz) void
writeFilterMask
(FilterMask filterMask) void
writeFloat
(float value) void
writeGameMode
(@Nullable GameMode mode) void
writeIdentifier
(ResourceLocation identifier) void
writeIdentifier
(ResourceLocation identifier, int maxLen) void
writeInt
(int value) void
writeItemStack
(ItemStack itemStack) void
writeItemStackModern
(ItemStack itemStack) void
writeKnownPack
(KnownPack knownPack) void
void
writeLastSeenMessages
(LastSeenMessages lastSeenMessages) void
writeLastSeenMessagesPacked
(LastSeenMessages.Packed lastSeenMessagesPacked) void
void
<K> void
writeList
(List<K> list, PacketWrapper.Writer<K> writer) void
writeLong
(long value) void
writeLongArray
(long[] array) <K,
V> void writeMap
(Map<K, V> map, PacketWrapper.Writer<K> keyConsumer, PacketWrapper.Writer<V> valueConsumer) void
writeMappedEntity
(MappedEntity entity) <Z extends MappedEntity>
voidwriteMappedEntityOrDirect
(Z entity, PacketWrapper.Writer<Z> writer) void
writeMedium
(int value) void
void
writeMessageSignature
(MessageSignature messageSignature) void
writeMessageSignaturePacked
(MessageSignature.Packed messageSignaturePacked) <V> void
writeMultiVersional
(VersionComparison version, ServerVersion target, V value, PacketWrapper.Writer<V> first, PacketWrapper.Writer<V> second) void
writeNBT
(NBTCompound nbt) void
writeNBTRaw
(NBT nbt) void
void
writeNullableVarInt
(@Nullable Integer i) <V> void
writeOptional
(V value, PacketWrapper.Writer<V> writer) void
writePresentItemStack
(ItemStack itemStack) void
writePublicKey
(PublicKey publicKey) void
void
writeRemoteChatSession
(RemoteChatSession chatSession) void
writeRotation
(float rotation) void
writeSaltSignature
(SaltSignature signature) void
writeShort
(int value) void
writeSignatureData
(SignatureData signatureData) void
writeSignedCommandArguments
(List<SignedCommandArgument> signedArguments) void
void
writeString
(String s, int maxLen) void
writeString
(String s, int maxLen, boolean substr) void
writeStyle
(net.kyori.adventure.text.format.Style style) void
writeTimestamp
(Instant timestamp) void
void
writeVarInt
(int value) void
writeVarIntArray
(int[] array) void
writeVarIntArrayOfSize
(int[] array) void
writeVarLong
(long l) void
writeVarShort
(int value) void
void
-
Field Details
-
buffer
-
bufferLock
-
clientVersion
-
serverVersion
-
user
-
-
Constructor Details
-
PacketWrapper
-
PacketWrapper
-
PacketWrapper
-
PacketWrapper
-
PacketWrapper
-
PacketWrapper
-
PacketWrapper
public PacketWrapper(int packetID) -
PacketWrapper
-
-
Method Details
-
createUniversalPacketWrapper
-
getChunkX
public static int getChunkX(long chunkKey) -
getChunkZ
public static int getChunkZ(long chunkKey) -
getChunkKey
public static long getChunkKey(int chunkX, int chunkZ) -
prepareForSend
-
prepareForSend
-
read
public void read() -
write
public void write() -
copy
-
readEvent
-
getClientVersion
-
setClientVersion
-
getServerVersion
-
setServerVersion
-
getBuffer
-
setBuffer
-
getPacketId
Deprecated.Gets the Packet ID for the current platform version- Returns:
- Packet ID
-
setPacketId
Deprecated.Sets the Packet ID for the current platform version -
getNativePacketId
public int getNativePacketId() -
setNativePacketId
public void setNativePacketId(int nativePacketId) -
getPacketTypeData
-
getMaxMessageLength
public int getMaxMessageLength() -
resetByteBuf
Deprecated. -
resetBuffer
public void resetBuffer() -
readByte
public byte readByte() -
writeByte
public void writeByte(int value) -
readUnsignedByte
public short readUnsignedByte() -
readBoolean
public boolean readBoolean() -
writeBoolean
public void writeBoolean(boolean value) -
readInt
public int readInt() -
writeInt
public void writeInt(int value) -
readMedium
public int readMedium() -
writeMedium
public void writeMedium(int value) -
readVarInt
public int readVarInt() -
writeVarInt
public void writeVarInt(int value) -
readMap
public <K,V> Map<K,V> readMap(PacketWrapper.Reader<K> keyFunction, PacketWrapper.Reader<V> valueFunction) -
writeMap
public <K,V> void writeMap(Map<K, V> map, PacketWrapper.Writer<K> keyConsumer, PacketWrapper.Writer<V> valueConsumer) -
readVillagerData
-
writeVillagerData
-
readItemStackModern
-
readPresentItemStack
-
readItemStack
-
writeItemStackModern
-
writePresentItemStack
-
writeItemStack
-
readNBT
-
readNBTRaw
-
readUnlimitedNBT
-
readUnlimitedNBTRaw
-
writeNBT
-
writeNBTRaw
-
readString
-
readString
-
readComponentJSON
Deprecated. -
writeString
-
writeString
-
writeString
-
writeComponentJSON
Deprecated. -
readComponent
public net.kyori.adventure.text.Component readComponent() -
readComponentAsNBT
public net.kyori.adventure.text.Component readComponentAsNBT() -
readComponentAsJSON
public net.kyori.adventure.text.Component readComponentAsJSON() -
writeComponent
public void writeComponent(net.kyori.adventure.text.Component component) -
writeComponentAsNBT
public void writeComponentAsNBT(net.kyori.adventure.text.Component component) -
writeComponentAsJSON
public void writeComponentAsJSON(net.kyori.adventure.text.Component component) -
readStyle
public net.kyori.adventure.text.format.Style readStyle() -
writeStyle
public void writeStyle(net.kyori.adventure.text.format.Style style) -
readIdentifier
-
readIdentifier
-
writeIdentifier
-
writeIdentifier
-
readUnsignedShort
public int readUnsignedShort() -
readShort
public short readShort() -
writeShort
public void writeShort(int value) -
readVarShort
public int readVarShort() -
writeVarShort
public void writeVarShort(int value) -
readLong
public long readLong() -
writeLong
public void writeLong(long value) -
readVarLong
public long readVarLong() -
writeVarLong
public void writeVarLong(long l) -
readFloat
public float readFloat() -
writeFloat
public void writeFloat(float value) -
readDouble
public double readDouble() -
writeDouble
public void writeDouble(double value) -
readRemainingBytes
public byte[] readRemainingBytes() -
readBytes
public byte[] readBytes(int size) -
writeBytes
public void writeBytes(byte[] array) -
readByteArray
public byte[] readByteArray(int maxLength) -
readByteArray
public byte[] readByteArray() -
writeByteArray
public void writeByteArray(byte[] array) -
readVarIntArray
public int[] readVarIntArray() -
writeVarIntArray
public void writeVarIntArray(int[] array) -
readLongArray
public long[] readLongArray(int size) -
readByteArrayOfSize
public byte[] readByteArrayOfSize(int size) -
writeByteArrayOfSize
public void writeByteArrayOfSize(byte[] array) -
readVarIntArrayOfSize
public int[] readVarIntArrayOfSize(int size) -
writeVarIntArrayOfSize
public void writeVarIntArrayOfSize(int[] array) -
readLongArray
public long[] readLongArray() -
writeLongArray
public void writeLongArray(long[] array) -
readUUID
-
writeUUID
-
readBlockPosition
-
writeBlockPosition
-
readGameMode
-
writeGameMode
-
readEntityMetadata
-
writeEntityMetadata
-
writeEntityMetadata
-
readDimension
Deprecated. -
writeDimension
Deprecated. -
readSaltSignature
-
writeSaltSignature
-
readPublicKey
-
writePublicKey
-
readPublicProfileKey
-
writePublicProfileKey
-
readRemoteChatSession
-
writeRemoteChatSession
-
readTimestamp
-
writeTimestamp
-
readSignatureData
-
writeSignatureData
-
limitValue
-
readWorldBlockPosition
-
writeWorldBlockPosition
-
readLastSeenMessagesEntry
-
writeLastMessagesEntry
-
readLastSeenMessagesUpdate
-
writeLastSeenMessagesUpdate
-
readLegacyLastSeenMessagesUpdate
-
writeLegacyLastSeenMessagesUpdate
-
readMessageSignature
-
writeMessageSignature
-
readMessageSignaturePacked
-
writeMessageSignaturePacked
-
readLastSeenMessagesPacked
-
writeLastSeenMessagesPacked
-
readLastSeenMessages
-
writeLastSeenMessages
-
readSignedCommandArguments
-
writeSignedCommandArguments
-
readBitSet
-
writeBitSet
-
readFilterMask
-
writeFilterMask
-
readMerchantOffer
-
writeMerchantOffer
-
readChatTypeBoundNetwork
-
writeChatTypeBoundNetwork
-
readNode
-
writeNode
-
readKnownPack
-
writeKnownPack
-
readEnumSet
-
writeEnumSet
-
readMultiVersional
@Experimental public <U,V, U readMultiVersionalR> (VersionComparison version, ServerVersion target, PacketWrapper.Reader<V> first, PacketWrapper.Reader<R> second) -
writeMultiVersional
@Experimental public <V> void writeMultiVersional(VersionComparison version, ServerVersion target, V value, PacketWrapper.Writer<V> first, PacketWrapper.Writer<V> second) -
readOptional
-
writeOptional
-
readCollection
public <K,C extends Collection<K>> C readCollection(IntFunction<C> function, PacketWrapper.Reader<K> reader) -
writeCollection
-
readList
-
writeList
-
readArray
-
writeArray
-
readEnum
-
readEnum
-
writeEnum
-
readMappedEntity
-
getRegistryHolder
-
readMappedEntityOrDirect
public <Z extends MappedEntity> Z readMappedEntityOrDirect(BiFunction<ClientVersion, Integer, Z> getter, PacketWrapper.Reader<Z> directReader) -
readMappedEntity
-
readMappedEntityOrDirect
public <Z extends MappedEntity> Z readMappedEntityOrDirect(IRegistry<Z> registry, PacketWrapper.Reader<Z> directReader) -
writeMappedEntity
-
writeMappedEntityOrDirect
public <Z extends MappedEntity> void writeMappedEntityOrDirect(Z entity, PacketWrapper.Writer<Z> writer) -
readContainerId
public int readContainerId() -
writeContainerId
public void writeContainerId(int containerId) -
writeRotation
public void writeRotation(float rotation) -
readRotation
public float readRotation() -
readNullableVarInt
-
writeNullableVarInt
-
getNativePacketId()