Class BlockModel
java.lang.Object
net.minecraft.client.renderer.block.model.BlockModel
- All Implemented Interfaces:
UnbakedModel
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<BlockElement>
private static final FaceBakery
(package private) static final com.google.gson.Gson
private final BlockModel.GuiLight
final boolean
private static final org.slf4j.Logger
private final List<ItemOverride>
protected ResourceLocation
static final String
private static final char
private final 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_) 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_, RenderTypeGroup renderTypes) Deprecated, for removal: This API element is subject to removal in a future version.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_) toString()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
FACE_BAKERY
-
GSON
static final com.google.gson.Gson GSON -
REFERENCE_CHAR
private static final char REFERENCE_CHAR- See Also:
-
PARTICLE_TEXTURE_REFERENCE
- See Also:
-
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(forRemoval=true, since="1.19.2") public BakedModel bakeVanilla(ModelBakery p_111450_, BlockModel p_111451_, Function<Material, TextureAtlasSprite> p_111452_, ModelState p_111453_, ResourceLocation p_111454_, boolean p_111455_, RenderTypeGroup renderTypes) Deprecated, for removal: This API element is subject to removal in a future version. -
bakeFace
public static BakedQuad bakeFace(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
-