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 static final boolean
private 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_273263_, List<BlockElement> p_272668_, Map<String, com.mojang.datafixers.util.Either<Material, String>> p_272821_, Boolean p_272676_, BlockModel.GuiLight p_273072_, ItemTransforms p_273480_, List<ItemOverride> p_273099_) -
Method Summary
Modifier and TypeMethodDescriptionbake
(ModelBaker p_252120_, Function<Material, TextureAtlasSprite> p_250023_, ModelState p_251130_, ResourceLocation p_252208_) Deprecated.bake
(ModelBaker p_249720_, 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
(ModelBaker p_249720_, BlockModel p_111451_, Function<Material, TextureAtlasSprite> p_111452_, ModelState p_111453_, ResourceLocation p_111454_, boolean p_111455_) findTextureEntry
(String p_111486_) static BlockModel
fromStream
(Reader p_111462_) static BlockModel
fromString
(String p_111464_) Deprecated.private ItemOverrides
getItemOverrides
(ModelBaker p_250138_, BlockModel p_251800_) getMaterial
(String p_111481_) getOverrides
(ModelBaker p_250138_, BlockModel p_251800_, Function<Material, TextureAtlasSprite> spriteGetter) private ItemTransform
getTransform
(ItemDisplayContext p_270662_) boolean
boolean
hasTexture
(String p_111478_) boolean
(package private) static boolean
isTextureReference
(String p_111489_) void
resolveParents
(Function<ResourceLocation, UnbakedModel> p_249059_) 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:
-
DEFAULT_AMBIENT_OCCLUSION
private static final boolean DEFAULT_AMBIENT_OCCLUSION- See Also:
-
elements
-
guiLight
-
hasAmbientOcclusion
-
transforms
-
overrides
-
name
-
textureMap
-
parent
-
parentLocation
-
customData
-
-
Constructor Details
-
BlockModel
public BlockModel(@Nullable ResourceLocation p_273263_, List<BlockElement> p_272668_, Map<String, com.mojang.datafixers.util.Either<Material, String>> p_272821_, @Nullable Boolean p_272676_, @Nullable BlockModel.GuiLight p_273072_, ItemTransforms p_273480_, List<ItemOverride> p_273099_)
-
-
Method Details
-
fromStream
-
fromString
-
getElements
Deprecated. -
getParentLocation
-
hasAmbientOcclusion
public boolean hasAmbientOcclusion() -
getGuiLight
-
isResolved
public boolean isResolved() -
getOverrides
-
getItemOverrides
-
getOverrides
public ItemOverrides getOverrides(ModelBaker p_250138_, BlockModel p_251800_, Function<Material, TextureAtlasSprite> spriteGetter) -
getDependencies
- Specified by:
getDependencies
in interfaceUnbakedModel
-
resolveParents
- Specified by:
resolveParents
in interfaceUnbakedModel
-
bake
@Deprecated public BakedModel bake(ModelBaker p_252120_, Function<Material, TextureAtlasSprite> p_250023_, ModelState p_251130_, ResourceLocation p_252208_) Deprecated.- Specified by:
bake
in interfaceUnbakedModel
-
bake
public BakedModel bake(ModelBaker p_249720_, BlockModel p_111451_, Function<Material, TextureAtlasSprite> p_111452_, ModelState p_111453_, ResourceLocation p_111454_, boolean p_111455_) -
bakeVanilla
public BakedModel bakeVanilla(ModelBaker p_249720_, BlockModel p_111451_, Function<Material, TextureAtlasSprite> p_111452_, ModelState p_111453_, ResourceLocation p_111454_, boolean p_111455_) -
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
-
bake(ModelBaker, BlockModel, Function, ModelState, ResourceLocation, boolean)
.