Package net.minecraftforge.client.model
Class CompositeModel.Baked
java.lang.Object
net.minecraftforge.client.model.CompositeModel.Baked
- All Implemented Interfaces:
BakedModel
,IForgeBakedModel
,IDynamicBakedModel
- Enclosing class:
- CompositeModel
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableMap<String,
BakedModel> private final boolean
private final boolean
private final boolean
private final com.google.common.collect.ImmutableList<BakedModel>
private final ItemOverrides
private final TextureAtlasSprite
private final ItemTransforms
-
Constructor Summary
ConstructorDescriptionBaked
(boolean isGui3d, boolean isSideLit, boolean isAmbientOcclusion, TextureAtlasSprite particle, ItemTransforms transforms, ItemOverrides overrides, com.google.common.collect.ImmutableMap<String, BakedModel> children, com.google.common.collect.ImmutableList<BakedModel> itemPasses) -
Method Summary
Modifier and TypeMethodDescriptionstatic CompositeModel.Baked.Builder
builder
(boolean isAmbientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, ItemOverrides overrides, ItemTransforms cameraTransforms) static CompositeModel.Baked.Builder
builder
(IGeometryBakingContext owner, TextureAtlasSprite particle, ItemOverrides overrides, ItemTransforms cameraTransforms) @NotNull ModelData
getModelData
(@NotNull BlockAndTintGetter level, @NotNull BlockPos pos, @NotNull BlockState state, @NotNull ModelData modelData) @Nullable BakedModel
getQuads
(@Nullable BlockState state, @Nullable Direction side, @NotNull RandomSource rand, @NotNull ModelData data, @Nullable RenderType renderType) A nullRenderType
is used for the breaking overlay as well as non-standard rendering, so models should return all their quads.getRenderPasses
(ItemStack itemStack, boolean fabulous) Gets an ordered list of baked models used to render this model as an item.getRenderTypes
(@NotNull BlockState state, @NotNull RandomSource rand, @NotNull ModelData data) Gets the set ofrender types
to use when drawing this block in the level.boolean
boolean
isGui3d()
boolean
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.client.model.IDynamicBakedModel
getQuads
Methods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel
applyTransform, getParticleIcon, getRenderTypes, useAmbientOcclusion, useAmbientOcclusion
-
Field Details
-
isAmbientOcclusion
private final boolean isAmbientOcclusion -
isGui3d
private final boolean isGui3d -
isSideLit
private final boolean isSideLit -
particle
-
overrides
-
transforms
-
children
-
itemPasses
-
-
Constructor Details
-
Baked
public Baked(boolean isGui3d, boolean isSideLit, boolean isAmbientOcclusion, TextureAtlasSprite particle, ItemTransforms transforms, ItemOverrides overrides, com.google.common.collect.ImmutableMap<String, BakedModel> children, com.google.common.collect.ImmutableList<BakedModel> itemPasses)
-
-
Method Details
-
getQuads
@NotNull public @NotNull List<BakedQuad> getQuads(@Nullable @Nullable BlockState state, @Nullable @Nullable Direction side, @NotNull @NotNull RandomSource rand, @NotNull @NotNull ModelData data, @Nullable @Nullable RenderType renderType) Description copied from interface:IForgeBakedModel
A nullRenderType
is used for the breaking overlay as well as non-standard rendering, so models should return all their quads.- Specified by:
getQuads
in interfaceIDynamicBakedModel
- Specified by:
getQuads
in interfaceIForgeBakedModel
-
getModelData
@NotNull public @NotNull ModelData getModelData(@NotNull @NotNull BlockAndTintGetter level, @NotNull @NotNull BlockPos pos, @NotNull @NotNull BlockState state, @NotNull @NotNull ModelData modelData) - Specified by:
getModelData
in interfaceIForgeBakedModel
-
useAmbientOcclusion
public boolean useAmbientOcclusion()- Specified by:
useAmbientOcclusion
in interfaceBakedModel
-
isGui3d
public boolean isGui3d()- Specified by:
isGui3d
in interfaceBakedModel
-
usesBlockLight
public boolean usesBlockLight()- Specified by:
usesBlockLight
in interfaceBakedModel
-
isCustomRenderer
public boolean isCustomRenderer()- Specified by:
isCustomRenderer
in interfaceBakedModel
-
getParticleIcon
- Specified by:
getParticleIcon
in interfaceBakedModel
-
getOverrides
- Specified by:
getOverrides
in interfaceBakedModel
-
getTransforms
- Specified by:
getTransforms
in interfaceBakedModel
-
getRenderTypes
public ChunkRenderTypeSet getRenderTypes(@NotNull @NotNull BlockState state, @NotNull @NotNull RandomSource rand, @NotNull @NotNull ModelData data) Description copied from interface:IForgeBakedModel
Gets the set ofrender types
to use when drawing this block in the level. Supported types are those returned byRenderType.chunkBufferLayers()
.By default, defers query to
ItemBlockRenderTypes
.- Specified by:
getRenderTypes
in interfaceIForgeBakedModel
-
getRenderPasses
Description copied from interface:IForgeBakedModel
Gets an ordered list of baked models used to render this model as an item. Each of those models' render types will be queried viaIForgeBakedModel.getRenderTypes(ItemStack, boolean)
.By default, returns the model itself.
- Specified by:
getRenderPasses
in interfaceIForgeBakedModel
- See Also:
-
getPart
-
builder
public static CompositeModel.Baked.Builder builder(IGeometryBakingContext owner, TextureAtlasSprite particle, ItemOverrides overrides, ItemTransforms cameraTransforms) -
builder
public static CompositeModel.Baked.Builder builder(boolean isAmbientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, ItemOverrides overrides, ItemTransforms cameraTransforms)
-