Class ServerAttachments

java.lang.Object
net.ixdarklord.coolcatcore.internal.attachment.ServerAttachments

public final class ServerAttachments extends Object
  • Field Details

    • CLIENT_OWNER

      public static final Object 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

      public static AttachmentStore global(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.
    • client

      public static AttachmentStore 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.