Class ExtraModelKey<T>
java.lang.Object
net.fabricmc.fabric.api.client.model.loading.v1.ExtraModelKey<T>
- Type Parameters:
T- The type of the baked model.
A unique key representing an extra model, not tied to a block state or item model.
Extra models can be registered with a ModelLoadingPlugin (see
ModelLoadingPlugin.Context.addModel(ExtraModelKey, UnbakedExtraModel)). Once baking is complete, they may
then be queried from the model manager using FabricBakedModelManager.getModel(ExtraModelKey).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ExtraModelKey<T> create()Create a new unique model key.static <T> ExtraModelKey<T> Create a new unique model key.toString()
-
Method Details
-
create
Create a new unique model key.- Type Parameters:
T- The type of the baked model.- Returns:
- The newly created model key.
-
create
Create a new unique model key.- Type Parameters:
T- The type of the baked model.- Parameters:
name- The name of this model key, shown in error messages.- Returns:
- The newly created model key.
-
toString
-