Class BlockModel
java.lang.Object
net.minecraft.client.renderer.model.BlockModel
- All Implemented Interfaces:
IUnbakedModel,IForgeUnbakedModel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal BlockModelConfigurationprivate static final FaceBakery(package private) static final com.google.gson.Gsonprivate final BlockModel.GuiLightfinal booleanprivate static final org.apache.logging.log4j.Loggerprivate final List<ItemOverride>protected ResourceLocationfinal Map<String,com.mojang.datafixers.util.Either<RenderMaterial, String>> private final ItemCameraTransforms -
Constructor Summary
ConstructorsConstructorDescriptionBlockModel(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 BakedQuadbakeFace(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 BlockModelfromStream(Reader p_178307_0_) static BlockModelfromString(String p_178294_0_) Deprecated.private ItemOverrideListgetItemOverrides(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 ItemTransformVec3fgetTransform(ItemCameraTransforms.TransformType p_181681_1_) booleanbooleanhasTexture(String p_178300_1_) private static booleanisTextureReference(String p_178304_0_) static BakedQuadmakeBakedQuad(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, waitMethods 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:
getDependenciesin 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:
getMaterialsin 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:
bakein 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
-