Class ServerAttachments
java.lang.Object
net.ixdarklord.coolcatcore.internal.attachment.ServerAttachments
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceMixed into the server: its player data, to read and write offline players' values. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectThe owner of the client's copy of the server's values. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThe client left the server: what it sent is forgotten.static AttachmentStoreclient()The client's copy of the server's values.static @Nullable AttachmentStoreexistingLevel(net.minecraft.server.level.ServerLevel level, @Nullable AttachmentStore current) A server level's store if it has one, saved or in use.static @Nullable AttachmentStoreexistingServer(net.minecraft.server.MinecraftServer server, @Nullable AttachmentStore current) The server's store if it has one, saved or in use.static AttachmentStoreglobal(net.minecraft.world.level.Level level) The server's values as this side sees them: the server's own on a server level, the synced copy on a client.static AttachmentStorelevel(net.minecraft.server.level.ServerLevel level, @Nullable AttachmentStore current) A server level's store, made if needed.static AttachmentStoreserver(net.minecraft.server.MinecraftServer server, @Nullable AttachmentStore current) The server's store, made if needed.
-
Field Details
-
CLIENT_OWNER
The owner of the client's copy of the server's values.
-
-
Method Details
-
level
public static AttachmentStore level(net.minecraft.server.level.ServerLevel level, @Nullable @Nullable AttachmentStore current) A server level's store, made if needed. -
existingLevel
@Nullable public static @Nullable AttachmentStore existingLevel(net.minecraft.server.level.ServerLevel level, @Nullable @Nullable AttachmentStore current) A server level's store if it has one, saved or in use. -
server
public static AttachmentStore server(net.minecraft.server.MinecraftServer server, @Nullable @Nullable AttachmentStore current) The server's store, made if needed. -
existingServer
@Nullable public static @Nullable AttachmentStore existingServer(net.minecraft.server.MinecraftServer server, @Nullable @Nullable AttachmentStore current) The server's store if it has one, saved or in use. -
global
The server's values as this side sees them: the server's own on a server level, the synced copy on a client. -
client
The client's copy of the server's values. -
clearClient
public static void clearClient()The client left the server: what it sent is forgotten.
-