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, wait
getPartVisibility
public final BlockModel owner
public final BlockModelConfiguration.VisibilityData visibilityData
public BlockModelConfiguration(BlockModel owner)
@Nullable public IUnbakedModel getOwnerModel()
IModelConfiguration
getOwnerModel
インタフェース内 IModelConfiguration
public java.lang.String getModelName()
getModelName
インタフェース内 IModelConfiguration
public 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)
IModelConfiguration
getPartVisibility
インタフェース内 IModelConfiguration
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.public boolean isTexturePresent(java.lang.String name)
IModelConfiguration
isTexturePresent
インタフェース内 IModelConfiguration
name
- The name of a texture channel.public Material resolveTexture(java.lang.String name)
IModelConfiguration
resolveTexture
インタフェース内 IModelConfiguration
name
- The name of a texture channel.public boolean isShadedInGui()
isShadedInGui
インタフェース内 IModelConfiguration
public boolean isSideLit()
isSideLit
インタフェース内 IModelConfiguration
public boolean useSmoothLighting()
useSmoothLighting
インタフェース内 IModelConfiguration
public ItemCameraTransforms getCameraTransforms()
IModelConfiguration
getCameraTransforms
インタフェース内 IModelConfiguration
public IModelTransform getCombinedTransform()
getCombinedTransform
インタフェース内 IModelConfiguration
public 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)