Interface IForgeBakedModel
- All Known Subinterfaces:
- BakedModel,- IDynamicBakedModel
- All Known Implementing Classes:
- BakedModelWrapper,- BuiltInModel,- CompositeModel.Baked,- EmptyModel.Baked,- MultiPartBakedModel,- SeparateTransformsModel.Baked,- SimpleBakedModel,- WeightedBakedModel
public interface IForgeBakedModel
Extension interface for 
IForgeBakedModel.- 
Method SummaryModifier and TypeMethodDescriptiondefault BakedModelapplyTransform(ItemDisplayContext transformType, PoseStack poseStack, boolean applyLeftHandTransform) Applies a transform for the givenItemTransforms.TransformTypeandapplyLeftHandTransform, and returns the model to be rendered.default @NotNull ModelDatagetModelData(@NotNull BlockAndTintGetter level, @NotNull BlockPos pos, @NotNull BlockState state, @NotNull ModelData modelData) default TextureAtlasSpritegetParticleIcon(@NotNull ModelData data) getQuads(@Nullable BlockState state, @Nullable Direction side, @NotNull RandomSource rand, @NotNull ModelData data, @Nullable RenderType renderType) A nullRenderTypeis used for the breaking overlay as well as non-standard rendering, so models should return all their quads.default List<BakedModel>getRenderPasses(ItemStack itemStack, boolean fabulous) Gets an ordered list of baked models used to render this model as an item.default ChunkRenderTypeSetgetRenderTypes(@NotNull BlockState state, @NotNull RandomSource rand, @NotNull ModelData data) Gets the set ofrender typesto use when drawing this block in the level.default List<RenderType>getRenderTypes(ItemStack itemStack, boolean fabulous) Gets an ordered list ofrender typesto use when drawing this item.private BakedModelself()default booleanuseAmbientOcclusion(BlockState state) default booleanuseAmbientOcclusion(BlockState state, RenderType renderType) 
- 
Method Details- 
self
- 
getQuads@NotNull default @NotNull List<BakedQuad> getQuads(@Nullable @Nullable BlockState state, @Nullable @Nullable Direction side, @NotNull @NotNull RandomSource rand, @NotNull @NotNull ModelData data, @Nullable @Nullable RenderType renderType) A nullRenderTypeis used for the breaking overlay as well as non-standard rendering, so models should return all their quads.
- 
useAmbientOcclusion
- 
useAmbientOcclusion
- 
applyTransformdefault BakedModel applyTransform(ItemDisplayContext transformType, PoseStack poseStack, boolean applyLeftHandTransform) Applies a transform for the givenItemTransforms.TransformTypeandapplyLeftHandTransform, and returns the model to be rendered.
- 
getModelData@NotNull default @NotNull ModelData getModelData(@NotNull @NotNull BlockAndTintGetter level, @NotNull @NotNull BlockPos pos, @NotNull @NotNull BlockState state, @NotNull @NotNull ModelData modelData) 
- 
getParticleIcon
- 
getRenderTypesdefault ChunkRenderTypeSet getRenderTypes(@NotNull @NotNull BlockState state, @NotNull @NotNull RandomSource rand, @NotNull @NotNull ModelData data) Gets the set ofrender typesto use when drawing this block in the level. Supported types are those returned byRenderType.chunkBufferLayers().By default, defers query to ItemBlockRenderTypes.
- 
getRenderTypesGets an ordered list ofrender typesto use when drawing this item. All render types using theDefaultVertexFormat.NEW_ENTITYformat are supported.This method will only be called on the models returned by getRenderPasses(ItemStack, boolean).By default, defers query to ItemBlockRenderTypes.- See Also:
 
- 
getRenderPassesGets an ordered list of baked models used to render this model as an item. Each of those models' render types will be queried viagetRenderTypes(ItemStack, boolean).By default, returns the model itself. - See Also:
 
 
-