public class ModelBlock extends java.lang.Object implements IUnbakedModel
Modifier and Type | Class and Description |
---|---|
static class |
ModelBlock.Deserializer |
Modifier and Type | Field and Description |
---|---|
boolean |
ambientOcclusion |
java.lang.String |
name |
ModelBlock |
parent |
java.util.Map<java.lang.String,java.lang.String> |
textures |
Constructor and Description |
---|
ModelBlock(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(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> spriteGetter,
IModelState rotationIn,
boolean uvlock,
VertexFormat format) |
static ModelBlock |
deserialize(java.io.Reader readerIn) |
static ModelBlock |
deserialize(java.lang.String jsonString) |
ItemCameraTransforms |
getAllTransforms() |
java.util.List<BlockPart> |
getElements() |
java.util.Collection<ResourceLocation> |
getOverrideLocations() |
java.util.List<ItemOverride> |
getOverrides() |
ItemOverrideList |
getOverrides(ModelBlock model,
java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> spriteGetter) |
ResourceLocation |
getParentLocation() |
ModelBlock |
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 |
isResolved() |
boolean |
isTexturePresent(java.lang.String textureName) |
static BakedQuad |
makeBakedQuad(BlockPart p_209567_0,
BlockPartFace partFace,
TextureAtlasSprite sprite,
EnumFacing face,
IModelState rotationIn,
boolean uvlock) |
java.lang.String |
resolveTextureName(java.lang.String textureName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bake
getClip, getDefaultState, gui3d, process, retexture, smoothLighting
public final boolean ambientOcclusion
public java.lang.String name
public final java.util.Map<java.lang.String,java.lang.String> textures
public ModelBlock parent
public ModelBlock(@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 ModelBlock deserialize(java.io.Reader readerIn)
public static ModelBlock deserialize(java.lang.String jsonString)
public java.util.List<BlockPart> getElements()
@Nullable public ResourceLocation getParentLocation()
public boolean isAmbientOcclusion()
public boolean isGui3d()
public boolean isResolved()
public java.util.List<ItemOverride> getOverrides()
public ItemOverrideList getOverrides(ModelBlock model, java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.function.Function<ResourceLocation,TextureAtlasSprite> spriteGetter)
public java.util.Collection<ResourceLocation> getOverrideLocations()
getOverrideLocations
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(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.function.Function<ResourceLocation,TextureAtlasSprite> spriteGetter, IModelState rotationIn, boolean uvlock, VertexFormat format)
bake
in interface IModel<IUnbakedModel>
public static BakedQuad makeBakedQuad(BlockPart p_209567_0, BlockPartFace partFace, TextureAtlasSprite sprite, EnumFacing face, IModelState rotationIn, boolean uvlock)
public boolean isTexturePresent(java.lang.String textureName)
public java.lang.String resolveTextureName(java.lang.String textureName)
public ModelBlock getRootModel()
public ItemCameraTransforms getAllTransforms()