Interface DataResourceStore

All Known Subinterfaces:
DataResourceStore.Mutable

public interface DataResourceStore
Represents a resource store for data.

Such resource store can be filled in the application phase of data reload listeners. And queried through an instance of MinecraftServer.

  • Method Details

    • getOrThrow

      <T> T getOrThrow(DataResourceStore.Key<T> key)
      Gets data stored at the given key, or throws if not found.
      Type Parameters:
      T - the type of data
      Parameters:
      key - the key
      Returns:
      the data stored at the given key