Class BlockModel
java.lang.Object
net.minecraft.client.renderer.block.model.BlockModel
- All Implemented Interfaces:
UnbakedModel,IForgeUnbakedModel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<BlockElement>private static FaceBakery(package private) static com.google.gson.Gsonprivate BlockModel.GuiLightbooleanprivate static org.apache.logging.log4j.Loggerprivate List<ItemOverride>protected ResourceLocationstatic Stringprivate static charprivate ItemTransforms -
Constructor Summary
ConstructorsConstructorDescriptionBlockModel(ResourceLocation p_111429_, List<BlockElement> p_111430_, Map<String,com.mojang.datafixers.util.Either<Material,String>> p_111431_, boolean p_111432_, BlockModel.GuiLight p_111433_, ItemTransforms p_111434_, List<ItemOverride> p_111435_) -
Method Summary
Modifier and TypeMethodDescriptionbake(ModelBakery p_111457_, Function<Material,TextureAtlasSprite> p_111458_, ModelState p_111459_, ResourceLocation p_111460_)Deprecated.bake(ModelBakery p_111450_, BlockModel p_111451_, Function<Material,TextureAtlasSprite> p_111452_, ModelState p_111453_, ResourceLocation p_111454_, boolean p_111455_)private static BakedQuadbakeFace(BlockElement p_111438_, BlockElementFace p_111439_, TextureAtlasSprite p_111440_, Direction p_111441_, ModelState p_111442_, ResourceLocation p_111443_)bakeVanilla(ModelBakery p_111450_, BlockModel p_111451_, Function<Material,TextureAtlasSprite> p_111452_, ModelState p_111453_, ResourceLocation p_111454_, boolean p_111455_)Deprecated.findTextureEntry(String p_111486_)static BlockModelfromStream(Reader p_111462_)static BlockModelfromString(String p_111464_)Deprecated.private ItemOverridesgetItemOverrides(ModelBakery p_111447_, BlockModel p_111448_)getMaterial(String p_111481_)getMaterials(Function<ResourceLocation,UnbakedModel> p_111469_, Set<com.mojang.datafixers.util.Pair<String,String>> p_111470_)getOverrides(ModelBakery p_111447_, BlockModel p_111448_, Function<Material,TextureAtlasSprite> textureGetter)private ItemTransformgetTransform(ItemTransforms.TransformType p_111445_)booleanbooleanhasTexture(String p_111478_)boolean(package private) static booleanisTextureReference(String p_111489_)static BakedQuadmakeBakedQuad(BlockElement p_111438_, BlockElementFace p_111439_, TextureAtlasSprite p_111440_, Direction p_111441_, ModelState p_111442_, ResourceLocation p_111443_)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 -
REFERENCE_CHAR
private static final char REFERENCE_CHAR- See Also:
- Constant Field Values
-
PARTICLE_TEXTURE_REFERENCE
- See Also:
- Constant Field Values
-
elements
-
guiLight
-
hasAmbientOcclusion
public final boolean hasAmbientOcclusion -
transforms
-
overrides
-
name
-
textureMap
-
parent
-
parentLocation
-
customData
-
-
Constructor Details
-
BlockModel
public BlockModel(@Nullable ResourceLocation p_111429_, List<BlockElement> p_111430_, Map<String,com.mojang.datafixers.util.Either<Material,String>> p_111431_, boolean p_111432_, @Nullable BlockModel.GuiLight p_111433_, ItemTransforms p_111434_, List<ItemOverride> p_111435_)
-
-
Method Details
-
fromStream
-
fromString
-
getElements
Deprecated. -
getParentLocation
-
hasAmbientOcclusion
public boolean hasAmbientOcclusion() -
getGuiLight
-
isResolved
public boolean isResolved() -
getOverrides
-
getItemOverrides
-
getOverrides
public ItemOverrides getOverrides(ModelBakery p_111447_, BlockModel p_111448_, Function<Material,TextureAtlasSprite> textureGetter) -
getDependencies
- Specified by:
getDependenciesin interfaceUnbakedModel
-
getMaterials
public Collection<Material> getMaterials(Function<ResourceLocation,UnbakedModel> p_111469_, Set<com.mojang.datafixers.util.Pair<String,String>> p_111470_)- Specified by:
getMaterialsin interfaceUnbakedModel
-
bake
@Deprecated public BakedModel bake(ModelBakery p_111457_, Function<Material,TextureAtlasSprite> p_111458_, ModelState p_111459_, ResourceLocation p_111460_)Deprecated.- Specified by:
bakein interfaceUnbakedModel
-
bake
public BakedModel bake(ModelBakery p_111450_, BlockModel p_111451_, Function<Material,TextureAtlasSprite> p_111452_, ModelState p_111453_, ResourceLocation p_111454_, boolean p_111455_) -
bakeVanilla
@Deprecated public BakedModel bakeVanilla(ModelBakery p_111450_, BlockModel p_111451_, Function<Material,TextureAtlasSprite> p_111452_, ModelState p_111453_, ResourceLocation p_111454_, boolean p_111455_)Deprecated. -
bakeFace
private static BakedQuad bakeFace(BlockElement p_111438_, BlockElementFace p_111439_, TextureAtlasSprite p_111440_, Direction p_111441_, ModelState p_111442_, ResourceLocation p_111443_) -
makeBakedQuad
public static BakedQuad makeBakedQuad(BlockElement p_111438_, BlockElementFace p_111439_, TextureAtlasSprite p_111440_, Direction p_111441_, ModelState p_111442_, ResourceLocation p_111443_) -
hasTexture
-
getMaterial
-
findTextureEntry
-
isTextureReference
-
getRootModel
-
getTransforms
-
getTransform
-
toString
-