public class BlockModelConfiguration extends java.lang.Object implements IModelConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockModelConfiguration.VisibilityData |
| Modifier and Type | Field and Description |
|---|---|
BlockModel |
owner |
BlockModelConfiguration.VisibilityData |
visibilityData |
| Constructor and Description |
|---|
BlockModelConfiguration(BlockModel owner) |
| Modifier and Type | Method and Description |
|---|---|
IBakedModel |
bake(ModelBakery bakery,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter,
ISprite sprite,
VertexFormat format,
ItemOverrideList overrides) |
void |
copyFrom(BlockModelConfiguration other) |
ItemCameraTransforms |
getCameraTransforms()
Gets the vanilla camera transforms data.
|
IModelState |
getCombinedState() |
IModelGeometry<?> |
getCustomGeometry() |
IModelState |
getCustomModelState() |
java.lang.String |
getModelName() |
IUnbakedModel |
getOwnerModel()
If available, gets the owning model (usually BlockModel) of this configuration
|
boolean |
getPartVisibility(IModelGeometryPart part,
boolean fallback)
Queries the visibility information for the model parts.
|
java.util.Collection<ResourceLocation> |
getTextureDependencies(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.Set<java.lang.String> missingTextureErrors) |
boolean |
hasCustomGeometry() |
boolean |
isShadedInGui() |
boolean |
isTexturePresent(java.lang.String name)
Checks if a texture is present in the model.
|
java.lang.String |
resolveTexture(java.lang.String name)
Resolves the final texture name, taking into account texture aliases and replacements.
|
void |
setCustomGeometry(IModelGeometry<?> geometry) |
void |
setCustomModelState(IModelState modelState) |
boolean |
useSmoothLighting() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPartVisibilitypublic final BlockModel owner
public final BlockModelConfiguration.VisibilityData visibilityData
public BlockModelConfiguration(BlockModel owner)
@Nullable public IUnbakedModel getOwnerModel()
IModelConfigurationgetOwnerModel in interface IModelConfigurationpublic java.lang.String getModelName()
getModelName in interface IModelConfigurationpublic boolean hasCustomGeometry()
@Nullable public IModelGeometry<?> getCustomGeometry()
public void setCustomGeometry(IModelGeometry<?> geometry)
@Nullable public IModelState getCustomModelState()
public void setCustomModelState(IModelState modelState)
public boolean getPartVisibility(IModelGeometryPart part, boolean fallback)
IModelConfigurationgetPartVisibility in interface IModelConfigurationpart - A part for which to query visibility.fallback - A boolean specifying the default visibility if an override isn't found in the model data.public boolean isTexturePresent(java.lang.String name)
IModelConfigurationisTexturePresent in interface IModelConfigurationname - The name of a texture channel.public java.lang.String resolveTexture(java.lang.String name)
IModelConfigurationresolveTexture in interface IModelConfigurationname - The name of a texture channel.public boolean isShadedInGui()
isShadedInGui in interface IModelConfigurationpublic boolean useSmoothLighting()
useSmoothLighting in interface IModelConfigurationpublic ItemCameraTransforms getCameraTransforms()
IModelConfigurationgetCameraTransforms in interface IModelConfigurationpublic IModelState getCombinedState()
getCombinedState in interface IModelConfigurationpublic void copyFrom(BlockModelConfiguration other)
public java.util.Collection<ResourceLocation> getTextureDependencies(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<java.lang.String> missingTextureErrors)
public IBakedModel bake(ModelBakery bakery, java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter, ISprite sprite, VertexFormat format, ItemOverrideList overrides)