Index

C D E F G H I L M N O P R S T V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

C

channel() - Method in record class commonnetwork.networking.ForgeNetworkHandler.Message
Returns the value of the channel record component.
classType() - Method in record class commonnetwork.networking.data.PacketContainer
Returns the value of the classType record 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 codec record 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
 
CommonNetworkForge - Class in commonnetwork
 
CommonNetworkForge() - Constructor for class commonnetwork.CommonNetworkForge
 
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 CommonPacketWrapper record class.
commonSetupEvent(FMLCommonSetupEvent) - Method in class commonnetwork.CommonNetworkForge
 
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 container record component.
container() - Method in record class commonnetwork.networking.ForgeNetworkHandler.Message
Returns the value of the container record component.

D

decoder() - Method in record class commonnetwork.networking.data.PacketContainer
Returns the value of the decoder record 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 encoder record 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.
equals(Object) - Method in record class commonnetwork.networking.ForgeNetworkHandler.Message
Indicates whether some other object is "equal to" this one.

F

ForgeNetworkHandler - Class in commonnetwork.networking
 
ForgeNetworkHandler(Side) - Constructor for class commonnetwork.networking.ForgeNetworkHandler
 
ForgeNetworkHandler.Message<T> - Record Class in commonnetwork.networking
 

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
getRawClientboundPacket(T) - Method in class commonnetwork.networking.ForgeNetworkHandler
 
getRawServerboundPacket(T) - Method in interface commonnetwork.api.NetworkHandler
Generates a ServerboundCustomPayloadPacket
getRawServerboundPacket(T) - Method in class commonnetwork.networking.ForgeNetworkHandler
 
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 handler record 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.
hashCode() - Method in record class commonnetwork.networking.ForgeNetworkHandler.Message
Returns a hash code value for this object.

I

INSTANCE - Static variable in class commonnetwork.CommonNetworkMod
 

L

LOG - Static variable in class commonnetwork.Constants
 

M

message() - Method in record class commonnetwork.networking.data.PacketContext
Returns the value of the message record component.
Message(Channel<CustomPacketPayload>, PacketContainer<T>) - Constructor for record class commonnetwork.networking.ForgeNetworkHandler.Message
Creates an instance of a Message record class.
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 packet record 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 PacketContainer record 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(ResourceLocation, 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 PacketContext record 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 packetType record 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(PacketContainer<T>) - Method in class commonnetwork.networking.ForgeNetworkHandler
 
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(ResourceLocation, 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(ResourceLocation, 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(ResourceLocation, Class<T>, BiConsumer<T, FriendlyByteBuf>, Function<FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Method in class commonnetwork.networking.DelayedPacketRegistrationHandler
 
registerPacket(ResourceLocation, 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(ResourceLocation, 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.
send(T, Connection) - Method in class commonnetwork.networking.ForgeNetworkHandler
 
sender() - Method in record class commonnetwork.networking.data.PacketContext
Returns the value of the sender record 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..
sendToClient(T, ServerPlayer, boolean) - Method in class commonnetwork.networking.ForgeNetworkHandler
 
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.
sendToServer(T, boolean) - Method in class commonnetwork.networking.ForgeNetworkHandler
 
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 side record 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.
toString() - Method in record class commonnetwork.networking.ForgeNetworkHandler.Message
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 type record 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.
C D E F G H I L M N O P R S T V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form