public class BlockModelConfiguration extends java.lang.Object implements IModelConfiguration
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
BlockModelConfiguration.VisibilityData |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
BlockModel |
owner |
BlockModelConfiguration.VisibilityData |
visibilityData |
| コンストラクタと説明 |
|---|
BlockModelConfiguration(BlockModel owner) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
IBakedModel |
bake(ModelBakery bakery,
java.util.function.Function<Material,TextureAtlasSprite> bakedTextureGetter,
IModelTransform modelTransform,
ItemOverrideList overrides,
ResourceLocation modelLocation) |
void |
copyFrom(BlockModelConfiguration other) |
ItemCameraTransforms |
getCameraTransforms()
Gets the vanilla camera transforms data.
|
IModelTransform |
getCombinedTransform() |
IModelGeometry<?> |
getCustomGeometry() |
IModelTransform |
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<Material> |
getTextureDependencies(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.String>> missingTextureErrors) |
boolean |
hasCustomGeometry() |
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.
|
void |
setCustomGeometry(IModelGeometry<?> geometry) |
void |
setCustomModelState(IModelTransform 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 インタフェース内 IModelConfigurationpublic java.lang.String getModelName()
getModelName インタフェース内 IModelConfigurationpublic boolean hasCustomGeometry()
@Nullable public IModelGeometry<?> getCustomGeometry()
public void setCustomGeometry(IModelGeometry<?> geometry)
@Nullable public IModelTransform getCustomModelState()
public void setCustomModelState(IModelTransform modelState)
public boolean getPartVisibility(IModelGeometryPart part, boolean fallback)
IModelConfigurationgetPartVisibility インタフェース内 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 インタフェース内 IModelConfigurationname - The name of a texture channel.public Material resolveTexture(java.lang.String name)
IModelConfigurationresolveTexture インタフェース内 IModelConfigurationname - The name of a texture channel.public boolean isShadedInGui()
isShadedInGui インタフェース内 IModelConfigurationpublic boolean isSideLit()
isSideLit インタフェース内 IModelConfigurationpublic boolean useSmoothLighting()
useSmoothLighting インタフェース内 IModelConfigurationpublic ItemCameraTransforms getCameraTransforms()
IModelConfigurationgetCameraTransforms インタフェース内 IModelConfigurationpublic IModelTransform getCombinedTransform()
getCombinedTransform インタフェース内 IModelConfigurationpublic void copyFrom(BlockModelConfiguration other)
public java.util.Collection<Material> getTextureDependencies(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.String>> missingTextureErrors)
public IBakedModel bake(ModelBakery bakery, java.util.function.Function<Material,TextureAtlasSprite> bakedTextureGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation)