public class BlockModel extends java.lang.Object implements IUnbakedModel
Modifier and Type | Class and Description |
---|---|
static class |
BlockModel.Deserializer |
Modifier and Type | Field and Description |
---|---|
boolean |
ambientOcclusion |
BlockModelConfiguration |
customData |
java.lang.String |
name |
BlockModel |
parent |
protected ResourceLocation |
parentLocation |
java.util.Map<java.lang.String,java.lang.String> |
textures |
Constructor and Description |
---|
BlockModel(ResourceLocation parentLocationIn,
java.util.List<BlockPart> elementsIn,
java.util.Map<java.lang.String,java.lang.String> texturesIn,
boolean ambientOcclusionIn,
boolean gui3dIn,
ItemCameraTransforms cameraTransformsIn,
java.util.List<ItemOverride> overridesIn) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(ModelBakery p_217644_1_,
BlockModel p_217644_2_,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> p_217644_3_,
ISprite p_217644_4_,
VertexFormat format) |
IBakedModel |
bake(ModelBakery bakery,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> spriteGetter,
ISprite sprite,
VertexFormat format) |
IBakedModel |
bakeVanilla(ModelBakery p_217644_1_,
BlockModel p_217644_2_,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> p_217644_3_,
ISprite p_217644_4_,
VertexFormat format) |
static BlockModel |
deserialize(java.io.Reader readerIn) |
static BlockModel |
deserialize(java.lang.String jsonString) |
IBakedModel |
func_217644_a(ModelBakery p_217644_1_,
BlockModel p_217644_2_,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> p_217644_3_,
ISprite p_217644_4_)
Deprecated.
|
ItemCameraTransforms |
getAllTransforms() |
java.util.Collection<ResourceLocation> |
getDependencies() |
java.util.List<BlockPart> |
getElements()
Deprecated.
|
java.util.List<ItemOverride> |
getOverrides() |
ItemOverrideList |
getOverrides(ModelBakery p_217646_1_,
BlockModel p_217646_2_,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> textureGetter,
VertexFormat format) |
ResourceLocation |
getParentLocation() |
BlockModel |
getRootModel() |
java.util.Collection<ResourceLocation> |
getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.Set<java.lang.String> missingTextureErrors) |
boolean |
isAmbientOcclusion() |
boolean |
isGui3d() |
boolean |
isTexturePresent(java.lang.String textureName) |
static BakedQuad |
makeBakedQuad(BlockPart p_209567_0,
BlockPartFace partFace,
TextureAtlasSprite sprite,
Direction face,
ISprite isprite) |
java.lang.String |
resolveTextureName(java.lang.String textureName) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bake
getDefaultState, gui3d, process, retexture, smoothLighting
getClip
public final boolean ambientOcclusion
public java.lang.String name
public final java.util.Map<java.lang.String,java.lang.String> textures
@Nullable public BlockModel parent
@Nullable protected ResourceLocation parentLocation
public final BlockModelConfiguration customData
public BlockModel(@Nullable ResourceLocation parentLocationIn, java.util.List<BlockPart> elementsIn, java.util.Map<java.lang.String,java.lang.String> texturesIn, boolean ambientOcclusionIn, boolean gui3dIn, ItemCameraTransforms cameraTransformsIn, java.util.List<ItemOverride> overridesIn)
public static BlockModel deserialize(java.io.Reader readerIn)
public static BlockModel deserialize(java.lang.String jsonString)
@Deprecated public java.util.List<BlockPart> getElements()
@Nullable public ResourceLocation getParentLocation()
public boolean isAmbientOcclusion()
public boolean isGui3d()
public java.util.List<ItemOverride> getOverrides()
public ItemOverrideList getOverrides(ModelBakery p_217646_1_, BlockModel p_217646_2_, java.util.function.Function<ResourceLocation,TextureAtlasSprite> textureGetter, VertexFormat format)
public java.util.Collection<ResourceLocation> getDependencies()
getDependencies
in interface IUnbakedModel
public java.util.Collection<ResourceLocation> getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<java.lang.String> missingTextureErrors)
getTextures
in interface IUnbakedModel
public IBakedModel bake(ModelBakery bakery, java.util.function.Function<ResourceLocation,TextureAtlasSprite> spriteGetter, ISprite sprite, VertexFormat format)
bake
in interface IForgeUnbakedModel
spriteGetter
- Where textures will be looked up when bakingsprite
- Transforms to apply while baking. Usually will be an instance of IModelState
.@Deprecated public IBakedModel func_217644_a(ModelBakery p_217644_1_, BlockModel p_217644_2_, java.util.function.Function<ResourceLocation,TextureAtlasSprite> p_217644_3_, ISprite p_217644_4_)
public IBakedModel bake(ModelBakery p_217644_1_, BlockModel p_217644_2_, java.util.function.Function<ResourceLocation,TextureAtlasSprite> p_217644_3_, ISprite p_217644_4_, VertexFormat format)
public IBakedModel bakeVanilla(ModelBakery p_217644_1_, BlockModel p_217644_2_, java.util.function.Function<ResourceLocation,TextureAtlasSprite> p_217644_3_, ISprite p_217644_4_, VertexFormat format)
public static BakedQuad makeBakedQuad(BlockPart p_209567_0, BlockPartFace partFace, TextureAtlasSprite sprite, Direction face, ISprite isprite)
public boolean isTexturePresent(java.lang.String textureName)
public java.lang.String resolveTextureName(java.lang.String textureName)
public BlockModel getRootModel()
public ItemCameraTransforms getAllTransforms()
public java.lang.String toString()
toString
in class java.lang.Object