Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
C
- classType() - Method in record class commonnetwork.networking.data.PacketContainer
-
Returns the value of the
classTyperecord component. - CLIENT - Enum constant in enum class commonnetwork.networking.data.Side
-
CLIENT is the client side.
- codec() - Method in record class commonnetwork.networking.data.PacketContainer
-
Returns the value of the
codecrecord component. - commonnetwork - package commonnetwork
- commonnetwork.api - package commonnetwork.api
- commonnetwork.networking - package commonnetwork.networking
- commonnetwork.networking.data - package commonnetwork.networking.data
- commonnetwork.networking.exceptions - package commonnetwork.networking.exceptions
- CommonNetworkMod - Class in commonnetwork
- CommonNetworkMod(PacketRegistrationHandler) - Constructor for class commonnetwork.CommonNetworkMod
- CommonPacketWrapper<T> - Record Class in commonnetwork.networking.data
-
Deprecated, for removal: This API element is subject to removal in a future version.
- CommonPacketWrapper(PacketContainer<T>, T) - Constructor for record class commonnetwork.networking.data.CommonPacketWrapper
-
Deprecated.Creates an instance of a
CommonPacketWrapperrecord class. - CONFIGURATION - Enum constant in enum class commonnetwork.networking.data.PacketContainer.PacketType
- Constants - Class in commonnetwork
- Constants() - Constructor for class commonnetwork.Constants
- container() - Method in record class commonnetwork.networking.data.CommonPacketWrapper
-
Deprecated.Returns the value of the
containerrecord component.
D
- decoder() - Method in record class commonnetwork.networking.data.PacketContainer
-
Returns the value of the
decoderrecord component. - DelayedPacketRegistrationHandler - Class in commonnetwork.networking
- DelayedPacketRegistrationHandler() - Constructor for class commonnetwork.networking.DelayedPacketRegistrationHandler
- Dispatcher - Class in commonnetwork.api
- Dispatcher() - Constructor for class commonnetwork.api.Dispatcher
E
- encoder() - Method in record class commonnetwork.networking.data.PacketContainer
-
Returns the value of the
encoderrecord component. - equals(Object) - Method in record class commonnetwork.networking.data.CommonPacketWrapper
-
Deprecated.Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class commonnetwork.networking.data.PacketContainer
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class commonnetwork.networking.data.PacketContext
-
Indicates whether some other object is "equal to" this one.
G
- getCodec() - Method in record class commonnetwork.networking.data.PacketContainer
- getNetworkHandler() - Static method in class commonnetwork.api.Network
-
Gets the Network handler for use to send packets.
- getPacketRegistration() - Method in class commonnetwork.CommonNetworkMod
- getRawClientboundPacket(T) - Method in interface commonnetwork.api.NetworkHandler
-
Generates a ClientboundCustomPayloadPacket
- getRawServerboundPacket(T) - Method in interface commonnetwork.api.NetworkHandler
-
Generates a ServerboundCustomPayloadPacket
- getSide() - Method in class commonnetwork.networking.DelayedPacketRegistrationHandler
- getSide() - Method in interface commonnetwork.networking.PacketRegistrar
- getSide() - Method in class commonnetwork.networking.PacketRegistrationHandler
- getType() - Method in record class commonnetwork.networking.data.PacketContainer
H
- handler() - Method in record class commonnetwork.networking.data.PacketContainer
-
Returns the value of the
handlerrecord component. - hashCode() - Method in record class commonnetwork.networking.data.CommonPacketWrapper
-
Deprecated.Returns a hash code value for this object.
- hashCode() - Method in record class commonnetwork.networking.data.PacketContainer
-
Returns a hash code value for this object.
- hashCode() - Method in record class commonnetwork.networking.data.PacketContext
-
Returns a hash code value for this object.
I
- INSTANCE - Static variable in class commonnetwork.CommonNetworkMod
L
M
- message() - Method in record class commonnetwork.networking.data.PacketContext
-
Returns the value of the
messagerecord component. - MOD_ID - Static variable in class commonnetwork.Constants
- MOD_NAME - Static variable in class commonnetwork.Constants
N
- Network - Class in commonnetwork.api
- Network() - Constructor for class commonnetwork.api.Network
- NetworkHandler - Interface in commonnetwork.api
O
- opposite() - Method in enum class commonnetwork.networking.data.Side
-
Gets the opposite side.
P
- packet() - Method in record class commonnetwork.networking.data.CommonPacketWrapper
-
Deprecated.Returns the value of the
packetrecord component. - PacketContainer<T> - Record Class in commonnetwork.networking.data
- PacketContainer(CustomPacketPayload.Type<? extends CustomPacketPayload>, Class<T>, BiConsumer<T, FriendlyByteBuf>, Function<FriendlyByteBuf, T>, StreamCodec<? super FriendlyByteBuf, T>, Consumer<PacketContext<T>>, PacketContainer.PacketType) - Constructor for record class commonnetwork.networking.data.PacketContainer
-
Creates an instance of a
PacketContainerrecord class. - PacketContainer(CustomPacketPayload.Type<? extends CustomPacketPayload>, Class<T>, StreamCodec<? super B, T>, Consumer<PacketContext<T>>, PacketContainer.PacketType) - Constructor for record class commonnetwork.networking.data.PacketContainer
- PacketContainer(Identifier, Class<T>, BiConsumer<T, FriendlyByteBuf>, Function<FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Constructor for record class commonnetwork.networking.data.PacketContainer
-
Deprecated, for removal: This API element is subject to removal in a future version.
- PacketContainer.PacketType - Enum Class in commonnetwork.networking.data
- PacketContext<T> - Record Class in commonnetwork.networking.data
- PacketContext(ServerPlayer, T, Side) - Constructor for record class commonnetwork.networking.data.PacketContext
-
Creates an instance of a
PacketContextrecord class. - PacketContext(T, Side) - Constructor for record class commonnetwork.networking.data.PacketContext
- PacketRegistrar - Interface in commonnetwork.networking
- PacketRegistrationHandler - Class in commonnetwork.networking
- PacketRegistrationHandler(Side) - Constructor for class commonnetwork.networking.PacketRegistrationHandler
-
Handles packet registration
- packetType() - Method in record class commonnetwork.networking.data.PacketContainer
-
Returns the value of the
packetTyperecord component. - PLAY - Enum constant in enum class commonnetwork.networking.data.PacketContainer.PacketType
R
- registerConfigurationPacket(CustomPacketPayload.Type<? extends CustomPacketPayload>, Class<T>, StreamCodec<? extends FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Static method in class commonnetwork.api.Network
-
Packet Registration
- registerConfigurationPacket(CustomPacketPayload.Type<? extends CustomPacketPayload>, Class<T>, StreamCodec<? extends FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Static method in class commonnetwork.CommonNetworkMod
- registerConfigurationPacket(CustomPacketPayload.Type<? extends CustomPacketPayload>, Class<T>, StreamCodec<? extends FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Method in class commonnetwork.networking.DelayedPacketRegistrationHandler
- registerConfigurationPacket(CustomPacketPayload.Type<? extends CustomPacketPayload>, Class<T>, StreamCodec<? extends FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Method in interface commonnetwork.networking.PacketRegistrar
-
Packet Registration, registers a CONFIGURATION packet
- registerConfigurationPacket(CustomPacketPayload.Type<? extends CustomPacketPayload>, Class<T>, StreamCodec<? extends FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Method in class commonnetwork.networking.PacketRegistrationHandler
- registerPacket(CustomPacketPayload.Type<? extends CustomPacketPayload>, Class<T>, StreamCodec<? extends FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Static method in class commonnetwork.api.Network
-
Packet Registration
- registerPacket(CustomPacketPayload.Type<? extends CustomPacketPayload>, Class<T>, StreamCodec<? extends FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Static method in class commonnetwork.CommonNetworkMod
- registerPacket(CustomPacketPayload.Type<? extends CustomPacketPayload>, Class<T>, StreamCodec<? extends FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Method in class commonnetwork.networking.DelayedPacketRegistrationHandler
- registerPacket(CustomPacketPayload.Type<? extends CustomPacketPayload>, Class<T>, StreamCodec<? extends FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Method in interface commonnetwork.networking.PacketRegistrar
-
Packet Registration, registers a PLAY packet
- registerPacket(CustomPacketPayload.Type<? extends CustomPacketPayload>, Class<T>, StreamCodec<? extends FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Method in class commonnetwork.networking.PacketRegistrationHandler
- registerPacket(Identifier, Class<T>, BiConsumer<T, FriendlyByteBuf>, Function<FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Static method in class commonnetwork.api.Network
-
Deprecated, for removal: This API element is subject to removal in a future version.this method will eventually be removed, please migrate to the method supplying your own encoding/decoding codec. Likely in 1.21.2 or 1.22.
- registerPacket(Identifier, Class<T>, BiConsumer<T, FriendlyByteBuf>, Function<FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Static method in class commonnetwork.CommonNetworkMod
-
Deprecated, for removal: This API element is subject to removal in a future version.
- registerPacket(Identifier, Class<T>, BiConsumer<T, FriendlyByteBuf>, Function<FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Method in class commonnetwork.networking.DelayedPacketRegistrationHandler
- registerPacket(Identifier, Class<T>, BiConsumer<T, FriendlyByteBuf>, Function<FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Method in interface commonnetwork.networking.PacketRegistrar
-
Deprecated, for removal: This API element is subject to removal in a future version.this method will eventually be removed, please migrate to the method supplying your own encoding/decoding codec. Likely in 1.21.2 or 1.22.
- registerPacket(Identifier, Class<T>, BiConsumer<T, FriendlyByteBuf>, Function<FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Method in class commonnetwork.networking.PacketRegistrationHandler
- registerQueuedPackets(PacketRegistrationHandler) - Method in class commonnetwork.networking.DelayedPacketRegistrationHandler
- RegistrationException - Exception Class in commonnetwork.networking.exceptions
- RegistrationException() - Constructor for exception class commonnetwork.networking.exceptions.RegistrationException
- RegistrationException(String) - Constructor for exception class commonnetwork.networking.exceptions.RegistrationException
- RegistrationException(String, Throwable) - Constructor for exception class commonnetwork.networking.exceptions.RegistrationException
- RegistrationException(String, Throwable, boolean, boolean) - Constructor for exception class commonnetwork.networking.exceptions.RegistrationException
- RegistrationException(Throwable) - Constructor for exception class commonnetwork.networking.exceptions.RegistrationException
S
- send(T, Connection) - Static method in class commonnetwork.api.Dispatcher
-
Sends the packet to the connection.
- send(T, Connection) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to the connection.
- sender() - Method in record class commonnetwork.networking.data.PacketContext
-
Returns the value of the
senderrecord component. - sendToAllClients(T, MinecraftServer) - Static method in class commonnetwork.api.Dispatcher
-
Sends the packet to all the client players in the server, only if the players has the packet registered.
- sendToAllClients(T, MinecraftServer) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to all the client players in the server, only if the players has the packet registered.
- sendToAllClients(T, MinecraftServer, boolean) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to all the client players in the server
- sendToClient(T, ServerPlayer) - Static method in class commonnetwork.api.Dispatcher
-
Sends the packet to the client player, only if the player has the packet registered.
- sendToClient(T, ServerPlayer) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to the client player, only if the player has the packet registered.
- sendToClient(T, ServerPlayer, boolean) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to the client player..
- sendToClients(T, List<ServerPlayer>) - Static method in class commonnetwork.api.Dispatcher
-
Sends the packet to the client players, only if the players has the packet registered.
- sendToClients(T, List<ServerPlayer>) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to the client players, only if the players has the packet registered.
- sendToClients(T, List<ServerPlayer>, boolean) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to the client players.
- sendToClientsInLevel(T, ServerLevel) - Static method in class commonnetwork.api.Dispatcher
-
Sends the packet to all the client players in the level, only if the players has the packet registered.
- sendToClientsInLevel(T, ServerLevel) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to all the client players in the level, only if the players has the packet registered.
- sendToClientsInLevel(T, ServerLevel, boolean) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to all the client players in the level.
- sendToClientsInRange(T, ServerLevel, BlockPos, double) - Static method in class commonnetwork.api.Dispatcher
-
Sends the packet to all the client players in range of a position, only if the players has the packet registered.
- sendToClientsInRange(T, ServerLevel, BlockPos, double) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to all the client players in range of a position, only if the players has the packet registered.
- sendToClientsInRange(T, ServerLevel, BlockPos, double, boolean) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to all the client players in range of a position.
- sendToClientsLoadingChunk(T, LevelChunk) - Static method in class commonnetwork.api.Dispatcher
-
Sends the packet to all the client players loading a chunk, only if the players has the packet registered.
- sendToClientsLoadingChunk(T, LevelChunk) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to all the client players loading a chunk, only if the players has the packet registered.
- sendToClientsLoadingChunk(T, LevelChunk, boolean) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to all the client players loading a chunk.
- sendToClientsLoadingPos(T, ServerLevel, BlockPos) - Static method in class commonnetwork.api.Dispatcher
-
Sends the packet to all the client players loading a position, only if the players has the packet registered.
- sendToClientsLoadingPos(T, ServerLevel, BlockPos) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to all the client players loading a position, only if the players has the packet registered.
- sendToClientsLoadingPos(T, ServerLevel, BlockPos, boolean) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to all the client players loading a position
- sendToClientsLoadingPos(T, ServerLevel, ChunkPos) - Static method in class commonnetwork.api.Dispatcher
-
Sends the packet to all the client players loading a position, only if the players has the packet registered.
- sendToClientsLoadingPos(T, ServerLevel, ChunkPos) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to all the client players loading a position, only if the players has the packet registered.
- sendToClientsLoadingPos(T, ServerLevel, ChunkPos, boolean) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to all the client players loading a position.
- sendToServer(T) - Static method in class commonnetwork.api.Dispatcher
-
Sends the packet to the server, if the server has the packet registered.
- sendToServer(T) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to the server, if the server has the packet registered.
- sendToServer(T, boolean) - Static method in class commonnetwork.api.Dispatcher
-
Sends the packet to the server.
- sendToServer(T, boolean) - Method in interface commonnetwork.api.NetworkHandler
-
Sends the packet to the server.
- SERVER - Enum constant in enum class commonnetwork.networking.data.Side
-
SERVER can be dedicated server, or logical server in singleplayer.
- side - Variable in class commonnetwork.networking.PacketRegistrationHandler
- side() - Method in record class commonnetwork.networking.data.PacketContext
-
Returns the value of the
siderecord component. - Side - Enum Class in commonnetwork.networking.data
T
- toString() - Method in record class commonnetwork.networking.data.CommonPacketWrapper
-
Deprecated.Returns a string representation of this record class.
- toString() - Method in record class commonnetwork.networking.data.PacketContainer
-
Returns a string representation of this record class.
- toString() - Method in record class commonnetwork.networking.data.PacketContext
-
Returns a string representation of this record class.
- type() - Method in record class commonnetwork.networking.data.CommonPacketWrapper
-
Deprecated.
- type() - Method in record class commonnetwork.networking.data.PacketContainer
-
Returns the value of the
typerecord component.
V
- valueOf(String) - Static method in enum class commonnetwork.networking.data.PacketContainer.PacketType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class commonnetwork.networking.data.Side
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class commonnetwork.networking.data.PacketContainer.PacketType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class commonnetwork.networking.data.Side
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form