Package net.minecraftforge.client.model
Class BlockModelConfiguration
java.lang.Object
net.minecraftforge.client.model.BlockModelConfiguration
- All Implemented Interfaces:
- IModelConfiguration
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbake(ModelBakery bakery, Function<Material,TextureAtlasSprite> bakedTextureGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation)voidcopyFrom(BlockModelConfiguration other)Gets the vanilla camera transforms data.If available, gets the owning model (usually BlockModel) of this configurationbooleangetPartVisibility(IModelGeometryPart part, boolean fallback)Queries the visibility information for the model parts.getTextureDependencies(Function<ResourceLocation,UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String,String>> missingTextureErrors)booleanbooleanbooleanbooleanisTexturePresent(String name)Checks if a texture is present in the model.resolveTexture(String name)Resolves the final texture name, taking into account texture aliases and replacements.voidsetCustomGeometry(IModelGeometry<?> geometry)voidsetCustomModelState(ModelState modelState)booleanMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.client.model.IModelConfigurationgetPartVisibility
- 
Field Details- 
owner
- 
visibilityData
- 
customGeometry
- 
customModelState
 
- 
- 
Constructor Details- 
BlockModelConfiguration
 
- 
- 
Method Details- 
getOwnerModelDescription copied from interface:IModelConfigurationIf available, gets the owning model (usually BlockModel) of this configuration- Specified by:
- getOwnerModelin interface- IModelConfiguration
 
- 
getModelName- Specified by:
- getModelNamein interface- IModelConfiguration
- Returns:
- The name of the model being baked, for logging and cache purposes.
 
- 
hasCustomGeometrypublic boolean hasCustomGeometry()
- 
getCustomGeometry
- 
setCustomGeometry
- 
getCustomModelState
- 
setCustomModelState
- 
getPartVisibilityDescription copied from interface:IModelConfigurationQueries the visibility information for the model parts.- Specified by:
- getPartVisibilityin interface- IModelConfiguration
- Parameters:
- 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.
- Returns:
- The final computed visibility.
 
- 
isTexturePresentDescription copied from interface:IModelConfigurationChecks if a texture is present in the model.- Specified by:
- isTexturePresentin interface- IModelConfiguration
- Parameters:
- name- The name of a texture channel.
 
- 
resolveTextureDescription copied from interface:IModelConfigurationResolves the final texture name, taking into account texture aliases and replacements.- Specified by:
- resolveTexturein interface- IModelConfiguration
- Parameters:
- name- The name of a texture channel.
- Returns:
- The location of the texture, or the missing texture if not found.
 
- 
isShadedInGuipublic boolean isShadedInGui()- Specified by:
- isShadedInGuiin interface- IModelConfiguration
- Returns:
- True if the item is a 3D model, false if it's a generated item model. TODO: Rename. This value has nothing to do with shading anymore, and this name is misleading. It's actual purpose seems to be relegated to translating the model during rendering, so that it's centered.
 
- 
isSideLitpublic boolean isSideLit()- Specified by:
- isSideLitin interface- IModelConfiguration
- Returns:
- True if the item is lit from the side
 
- 
useSmoothLightingpublic boolean useSmoothLighting()- Specified by:
- useSmoothLightingin interface- IModelConfiguration
- Returns:
- True if the item requires per-vertex lighting.
 
- 
getCameraTransformsDescription copied from interface:IModelConfigurationGets the vanilla camera transforms data. Do not use for non-vanilla code. For general usage, prefer getCombinedState.- Specified by:
- getCameraTransformsin interface- IModelConfiguration
 
- 
getCombinedTransform- Specified by:
- getCombinedTransformin interface- IModelConfiguration
- Returns:
- The combined transformation state including vanilla and forge transforms data.
 
- 
copyFrom
- 
getTextureDependenciespublic Collection<Material> getTextureDependencies(Function<ResourceLocation,UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String,String>> missingTextureErrors)
- 
bakepublic BakedModel bake(ModelBakery bakery, Function<Material,TextureAtlasSprite> bakedTextureGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation)
 
-