Class BlockModel
java.lang.Object
net.minecraft.client.renderer.block.model.BlockModel
- All Implemented Interfaces:
UnbakedModel
,IForgeUnbakedModel
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate List<BlockElement>
private static FaceBakery
(package private) static com.google.gson.Gson
private BlockModel.GuiLight
boolean
private static org.apache.logging.log4j.Logger
private List<ItemOverride>
protected ResourceLocation
static String
private static char
private ItemTransforms
-
Constructor Summary
ConstructorDescriptionBlockModel(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 BakedQuad
bakeFace(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 BlockModel
fromStream(Reader p_111462_)
static BlockModel
fromString(String p_111464_)
Deprecated.private ItemOverrides
getItemOverrides(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 ItemTransform
getTransform(ItemTransforms.TransformType p_111445_)
boolean
boolean
hasTexture(String p_111478_)
boolean
(package private) static boolean
isTextureReference(String p_111489_)
static BakedQuad
makeBakedQuad(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, 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 -
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:
getDependencies
in interfaceUnbakedModel
-
getMaterials
public Collection<Material> getMaterials(Function<ResourceLocation,UnbakedModel> p_111469_, Set<com.mojang.datafixers.util.Pair<String,String>> p_111470_)- Specified by:
getMaterials
in interfaceUnbakedModel
-
bake
@Deprecated public BakedModel bake(ModelBakery p_111457_, Function<Material,TextureAtlasSprite> p_111458_, ModelState p_111459_, ResourceLocation p_111460_)Deprecated.- Specified by:
bake
in 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
-