public interface IModelConfiguration
Modifier and Type | Method and Description |
---|---|
ItemCameraTransforms |
getCameraTransforms()
Deprecated.
|
IModelTransform |
getCombinedTransform() |
java.lang.String |
getModelName() |
IUnbakedModel |
getOwnerModel()
If available, gets the owning model (usually BlockModel) of this configuration
|
default boolean |
getPartVisibility(IModelGeometryPart part)
Queries the visibility information for the model parts.
|
default boolean |
getPartVisibility(IModelGeometryPart part,
boolean fallback)
Queries the visibility information for the model parts.
|
boolean |
isShadedInGui() |
boolean |
isSideLit() |
boolean |
isTexturePresent(java.lang.String name)
Checks if a texture is present in the model.
|
Material |
resolveTexture(java.lang.String name)
Resolves the final texture name, taking into account texture aliases and replacements.
|
boolean |
useSmoothLighting() |
@Nullable IUnbakedModel getOwnerModel()
java.lang.String getModelName()
boolean isTexturePresent(java.lang.String name)
name
- The name of a texture channel.Material resolveTexture(java.lang.String name)
name
- The name of a texture channel.boolean isShadedInGui()
boolean isSideLit()
boolean useSmoothLighting()
@Deprecated ItemCameraTransforms getCameraTransforms()
IModelTransform getCombinedTransform()
default boolean getPartVisibility(IModelGeometryPart part, boolean fallback)
part
- A part for which to query visibility.fallback
- A boolean specifying the default visibility if an override isn't found in the model data.default boolean getPartVisibility(IModelGeometryPart part)
part
- A part for which to query visibility.