Class BlockModel
java.lang.Object
net.minecraft.client.renderer.model.BlockModel
- All Implemented Interfaces:
IUnbakedModel
,IForgeUnbakedModel
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
-
Field Summary
Modifier and TypeFieldDescriptionfinal BlockModelConfiguration
private static final FaceBakery
(package private) static final com.google.gson.Gson
private final BlockModel.GuiLight
final boolean
private static final org.apache.logging.log4j.Logger
private final List<ItemOverride>
protected ResourceLocation
final Map<String,
com.mojang.datafixers.util.Either<RenderMaterial, String>> private final ItemCameraTransforms
-
Constructor Summary
ConstructorDescriptionBlockModel
(ResourceLocation p_i230056_1_, List<BlockPart> p_i230056_2_, Map<String, com.mojang.datafixers.util.Either<RenderMaterial, String>> p_i230056_3_, boolean p_i230056_4_, BlockModel.GuiLight p_i230056_5_, ItemCameraTransforms p_i230056_6_, List<ItemOverride> p_i230056_7_) -
Method Summary
Modifier and TypeMethodDescriptionbake
(ModelBakery p_225613_1_, Function<RenderMaterial, TextureAtlasSprite> p_225613_2_, IModelTransform p_225613_3_, ResourceLocation p_225613_4_) Deprecated.bake
(ModelBakery p_228813_1_, BlockModel p_228813_2_, Function<RenderMaterial, TextureAtlasSprite> p_228813_3_, IModelTransform p_228813_4_, ResourceLocation p_228813_5_, boolean p_228813_6_) private static BakedQuad
bakeFace
(BlockPart p_228812_0_, BlockPartFace p_228812_1_, TextureAtlasSprite p_228812_2_, Direction p_228812_3_, IModelTransform p_228812_4_, ResourceLocation p_228812_5_) bakeVanilla
(ModelBakery p_228813_1_, BlockModel p_228813_2_, Function<RenderMaterial, TextureAtlasSprite> p_228813_3_, IModelTransform p_228813_4_, ResourceLocation p_228813_5_, boolean p_228813_6_) Deprecated.private com.mojang.datafixers.util.Either<RenderMaterial,
String> findTextureEntry
(String p_228818_1_) static BlockModel
fromStream
(Reader p_178307_0_) static BlockModel
fromString
(String p_178294_0_) Deprecated.private ItemOverrideList
getItemOverrides
(ModelBakery p_217646_1_, BlockModel p_217646_2_) getMaterial
(String p_228816_1_) getMaterials
(Function<ResourceLocation, IUnbakedModel> p_225614_1_, Set<com.mojang.datafixers.util.Pair<String, String>> p_225614_2_) getOverrides
(ModelBakery p_217646_1_, BlockModel p_217646_2_, Function<RenderMaterial, TextureAtlasSprite> textureGetter) private ItemTransformVec3f
getTransform
(ItemCameraTransforms.TransformType p_181681_1_) boolean
boolean
hasTexture
(String p_178300_1_) private static boolean
isTextureReference
(String p_178304_0_) static BakedQuad
makeBakedQuad
(BlockPart p_228812_0_, BlockPartFace p_228812_1_, TextureAtlasSprite p_228812_2_, Direction p_228812_3_, IModelTransform p_228812_4_, ResourceLocation p_228812_5_) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.client.extensions.IForgeUnbakedModel
getClip
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
FACE_BAKERY
-
GSON
static final com.google.gson.Gson GSON -
elements
-
guiLight
-
hasAmbientOcclusion
public final boolean hasAmbientOcclusion -
transforms
-
overrides
-
name
-
textureMap
-
parent
-
parentLocation
-
customData
-
-
Constructor Details
-
BlockModel
public BlockModel(@Nullable ResourceLocation p_i230056_1_, List<BlockPart> p_i230056_2_, Map<String, com.mojang.datafixers.util.Either<RenderMaterial, String>> p_i230056_3_, boolean p_i230056_4_, @Nullable BlockModel.GuiLight p_i230056_5_, ItemCameraTransforms p_i230056_6_, List<ItemOverride> p_i230056_7_)
-
-
Method Details
-
fromStream
-
fromString
-
getElements
Deprecated. -
getParentLocation
-
hasAmbientOcclusion
public boolean hasAmbientOcclusion() -
getGuiLight
-
getOverrides
-
getItemOverrides
-
getOverrides
public ItemOverrideList getOverrides(ModelBakery p_217646_1_, BlockModel p_217646_2_, Function<RenderMaterial, TextureAtlasSprite> textureGetter) -
getDependencies
- Specified by:
getDependencies
in interfaceIUnbakedModel
-
getMaterials
public Collection<RenderMaterial> getMaterials(Function<ResourceLocation, IUnbakedModel> p_225614_1_, Set<com.mojang.datafixers.util.Pair<String, String>> p_225614_2_) - Specified by:
getMaterials
in interfaceIUnbakedModel
-
bake
@Deprecated public IBakedModel bake(ModelBakery p_225613_1_, Function<RenderMaterial, TextureAtlasSprite> p_225613_2_, IModelTransform p_225613_3_, ResourceLocation p_225613_4_) Deprecated.- Specified by:
bake
in interfaceIUnbakedModel
-
bake
public IBakedModel bake(ModelBakery p_228813_1_, BlockModel p_228813_2_, Function<RenderMaterial, TextureAtlasSprite> p_228813_3_, IModelTransform p_228813_4_, ResourceLocation p_228813_5_, boolean p_228813_6_) -
bakeVanilla
@Deprecated public IBakedModel bakeVanilla(ModelBakery p_228813_1_, BlockModel p_228813_2_, Function<RenderMaterial, TextureAtlasSprite> p_228813_3_, IModelTransform p_228813_4_, ResourceLocation p_228813_5_, boolean p_228813_6_) Deprecated. -
bakeFace
private static BakedQuad bakeFace(BlockPart p_228812_0_, BlockPartFace p_228812_1_, TextureAtlasSprite p_228812_2_, Direction p_228812_3_, IModelTransform p_228812_4_, ResourceLocation p_228812_5_) -
makeBakedQuad
public static BakedQuad makeBakedQuad(BlockPart p_228812_0_, BlockPartFace p_228812_1_, TextureAtlasSprite p_228812_2_, Direction p_228812_3_, IModelTransform p_228812_4_, ResourceLocation p_228812_5_) -
hasTexture
-
getMaterial
-
findTextureEntry
private com.mojang.datafixers.util.Either<RenderMaterial,String> findTextureEntry(String p_228818_1_) -
isTextureReference
-
getRootModel
-
getTransforms
-
getTransform
-
toString
-