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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classRepresents a typed key for the data resource store.static interface -
Method Summary
Modifier and TypeMethodDescription<T> TgetOrThrow(DataResourceStore.Key<T> key) Gets data stored at the given key, or throws if not found.
-
Method Details
-
getOrThrow
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
-