Index

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

C

CLIENT - Enum constant in enum class commonnetwork.networking.data.Side
CLIENT is the client side.
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
 
Constants - Class in commonnetwork
 
Constants() - Constructor for class commonnetwork.Constants
 

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.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

getNetworkHandler() - Static method in class commonnetwork.api.Network
Gets the Network handler for use to send packets.
getPacketRegistration() - Method in class commonnetwork.CommonNetworkMod
 
getSide() - Method in class commonnetwork.networking.DelayedPacketRegistrationHandler
 
getSide() - Method in interface commonnetwork.networking.PacketRegistrar
 
getSide() - Method in class commonnetwork.networking.PacketRegistrationHandler
 

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.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

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.
messageType() - Method in record class commonnetwork.networking.data.PacketContainer
Returns the value of the messageType record 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

PacketContainer<T> - Record Class in commonnetwork.networking.data
 
PacketContainer(ResourceLocation, Class<T>, BiConsumer<T, FriendlyByteBuf>, Function<FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Constructor for record class commonnetwork.networking.data.PacketContainer
Creates an instance of a PacketContainer record class.
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
 
packetIdentifier() - Method in record class commonnetwork.networking.data.PacketContainer
Returns the value of the packetIdentifier record component.
PacketRegistrar - Interface in commonnetwork.networking
 
PacketRegistrationHandler - Class in commonnetwork.networking
 
PacketRegistrationHandler(Side) - Constructor for class commonnetwork.networking.PacketRegistrationHandler
Handles packet registration

R

registerPacket(ResourceLocation, Class<T>, BiConsumer<T, FriendlyByteBuf>, Function<FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Static method in class commonnetwork.api.Network
Packet Registration
registerPacket(ResourceLocation, Class<T>, BiConsumer<T, FriendlyByteBuf>, Function<FriendlyByteBuf, T>, Consumer<PacketContext<T>>) - Static method in class commonnetwork.CommonNetworkMod
 
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
Packet Registration
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 in commonnetwork.networking.exceptions
 
RegistrationException() - Constructor for exception commonnetwork.networking.exceptions.RegistrationException
 
RegistrationException(String) - Constructor for exception commonnetwork.networking.exceptions.RegistrationException
 
RegistrationException(String, Throwable) - Constructor for exception commonnetwork.networking.exceptions.RegistrationException
 
RegistrationException(String, Throwable, boolean, boolean) - Constructor for exception commonnetwork.networking.exceptions.RegistrationException
 
RegistrationException(Throwable) - Constructor for exception commonnetwork.networking.exceptions.RegistrationException
 

S

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.
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 side record component.
Side - Enum Class in commonnetwork.networking.data
 

T

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.

V

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.Side
Returns an array containing the constants of this enum class, in the order they are declared.
C D E G H I L M N O P R S T V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form