Class StandaloneModelKey<T>
java.lang.Object
net.neoforged.neoforge.client.model.standalone.StandaloneModelKey<T>
- Type Parameters:
T
- The type returned by theStandaloneModelBaker
this key is registered with
A key referring to a model file to be loaded and baked as a standalone model (not bound to a block or item).
This key is registered together with a StandaloneModelBaker
or UnbakedStandaloneModel
in
ModelEvent.RegisterStandalone
and later used to retrieve the model baked by the StandaloneModelBaker
,
using ModelManager.getStandaloneModel(StandaloneModelKey)
.
The key is compared by identity as multiple keys may refer to the same model file while using different bakers.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
modelId
private final net.minecraft.resources.ResourceLocation modelId
-
-
Constructor Details
-
StandaloneModelKey
public StandaloneModelKey(net.minecraft.resources.ResourceLocation modelId)
-
-
Method Details