public class BlockModel extends java.lang.Object implements IUnbakedModel
Modifier and Type | Class and Description |
---|---|
static class |
BlockModel.Deserializer |
static class |
BlockModel.GuiLight |
Modifier and Type | Field and Description |
---|---|
boolean |
ambientOcclusion |
private ItemCameraTransforms |
cameraTransforms |
BlockModelConfiguration |
customData |
private java.util.List<BlockPart> |
elements |
private static FaceBakery |
FACE_BAKERY |
private BlockModel.GuiLight |
field_230174_i_ |
private static org.apache.logging.log4j.Logger |
LOGGER |
java.lang.String |
name |
private java.util.List<ItemOverride> |
overrides |
BlockModel |
parent |
protected ResourceLocation |
parentLocation |
(package private) static com.google.gson.Gson |
SERIALIZER |
java.util.Map<java.lang.String,com.mojang.datafixers.util.Either<Material,java.lang.String>> |
textures |
Constructor and Description |
---|
BlockModel(ResourceLocation p_i230056_1_,
java.util.List<BlockPart> p_i230056_2_,
java.util.Map<java.lang.String,com.mojang.datafixers.util.Either<Material,java.lang.String>> p_i230056_3_,
boolean p_i230056_4_,
BlockModel.GuiLight p_i230056_5_,
ItemCameraTransforms p_i230056_6_,
java.util.List<ItemOverride> p_i230056_7_) |
Modifier and Type | Method and Description |
---|---|
private static BakedQuad |
bakeFace(BlockPart partIn,
BlockPartFace partFaceIn,
TextureAtlasSprite spriteIn,
Direction directionIn,
IModelTransform transformIn,
ResourceLocation locationIn) |
IBakedModel |
bakeModel(ModelBakery modelBakeryIn,
BlockModel modelIn,
java.util.function.Function<Material,TextureAtlasSprite> spriteGetterIn,
IModelTransform transformIn,
ResourceLocation locationIn,
boolean p_228813_6_) |
IBakedModel |
bakeModel(ModelBakery modelBakeryIn,
java.util.function.Function<Material,TextureAtlasSprite> spriteGetterIn,
IModelTransform transformIn,
ResourceLocation locationIn)
Deprecated.
|
IBakedModel |
bakeVanilla(ModelBakery modelBakeryIn,
BlockModel modelIn,
java.util.function.Function<Material,TextureAtlasSprite> spriteGetterIn,
IModelTransform transformIn,
ResourceLocation locationIn,
boolean p_228813_6_)
Deprecated.
|
static BlockModel |
deserialize(java.io.Reader readerIn) |
static BlockModel |
deserialize(java.lang.String jsonString) |
private com.mojang.datafixers.util.Either<Material,java.lang.String> |
findTexture(java.lang.String nameIn) |
BlockModel.GuiLight |
func_230176_c_() |
ItemCameraTransforms |
getAllTransforms() |
java.util.Collection<ResourceLocation> |
getDependencies() |
java.util.List<BlockPart> |
getElements()
Deprecated.
|
private ItemOverrideList |
getItemOverrideList(ModelBakery modelBakeryIn,
BlockModel modelIn) |
java.util.List<ItemOverride> |
getOverrides() |
ItemOverrideList |
getOverrides(ModelBakery modelBakeryIn,
BlockModel modelIn,
java.util.function.Function<Material,TextureAtlasSprite> textureGetter) |
ResourceLocation |
getParentLocation() |
BlockModel |
getRootModel() |
java.util.Collection<Material> |
getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.String>> missingTextureErrors) |
private ItemTransformVec3f |
getTransform(ItemCameraTransforms.TransformType type) |
boolean |
isAmbientOcclusion() |
boolean |
isTexturePresent(java.lang.String textureName) |
static BakedQuad |
makeBakedQuad(BlockPart partIn,
BlockPartFace partFaceIn,
TextureAtlasSprite spriteIn,
Direction directionIn,
IModelTransform transformIn,
ResourceLocation locationIn) |
Material |
resolveTextureName(java.lang.String nameIn) |
private static boolean |
startsWithHash(java.lang.String strIn) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getClip
private static final org.apache.logging.log4j.Logger LOGGER
private static final FaceBakery FACE_BAKERY
static final com.google.gson.Gson SERIALIZER
private final java.util.List<BlockPart> elements
@Nullable private final BlockModel.GuiLight field_230174_i_
public final boolean ambientOcclusion
private final ItemCameraTransforms cameraTransforms
private final java.util.List<ItemOverride> overrides
public java.lang.String name
public final java.util.Map<java.lang.String,com.mojang.datafixers.util.Either<Material,java.lang.String>> textures
@Nullable public BlockModel parent
@Nullable protected ResourceLocation parentLocation
public final BlockModelConfiguration customData
public BlockModel(@Nullable ResourceLocation p_i230056_1_, java.util.List<BlockPart> p_i230056_2_, java.util.Map<java.lang.String,com.mojang.datafixers.util.Either<Material,java.lang.String>> p_i230056_3_, boolean p_i230056_4_, @Nullable BlockModel.GuiLight p_i230056_5_, ItemCameraTransforms p_i230056_6_, java.util.List<ItemOverride> p_i230056_7_)
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 BlockModel.GuiLight func_230176_c_()
public java.util.List<ItemOverride> getOverrides()
private ItemOverrideList getItemOverrideList(ModelBakery modelBakeryIn, BlockModel modelIn)
public ItemOverrideList getOverrides(ModelBakery modelBakeryIn, BlockModel modelIn, java.util.function.Function<Material,TextureAtlasSprite> textureGetter)
public java.util.Collection<ResourceLocation> getDependencies()
getDependencies
in interface IUnbakedModel
public java.util.Collection<Material> getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.String>> missingTextureErrors)
getTextures
in interface IUnbakedModel
@Deprecated public IBakedModel bakeModel(ModelBakery modelBakeryIn, java.util.function.Function<Material,TextureAtlasSprite> spriteGetterIn, IModelTransform transformIn, ResourceLocation locationIn)
bakeModel
in interface IUnbakedModel
public IBakedModel bakeModel(ModelBakery modelBakeryIn, BlockModel modelIn, java.util.function.Function<Material,TextureAtlasSprite> spriteGetterIn, IModelTransform transformIn, ResourceLocation locationIn, boolean p_228813_6_)
@Deprecated public IBakedModel bakeVanilla(ModelBakery modelBakeryIn, BlockModel modelIn, java.util.function.Function<Material,TextureAtlasSprite> spriteGetterIn, IModelTransform transformIn, ResourceLocation locationIn, boolean p_228813_6_)
private static BakedQuad bakeFace(BlockPart partIn, BlockPartFace partFaceIn, TextureAtlasSprite spriteIn, Direction directionIn, IModelTransform transformIn, ResourceLocation locationIn)
public static BakedQuad makeBakedQuad(BlockPart partIn, BlockPartFace partFaceIn, TextureAtlasSprite spriteIn, Direction directionIn, IModelTransform transformIn, ResourceLocation locationIn)
public boolean isTexturePresent(java.lang.String textureName)
public Material resolveTextureName(java.lang.String nameIn)
private com.mojang.datafixers.util.Either<Material,java.lang.String> findTexture(java.lang.String nameIn)
private static boolean startsWithHash(java.lang.String strIn)
public BlockModel getRootModel()
public ItemCameraTransforms getAllTransforms()
private ItemTransformVec3f getTransform(ItemCameraTransforms.TransformType type)
public java.lang.String toString()
toString
in class java.lang.Object