Interface IForgeBakedModel
- All Known Subinterfaces:
IBakedModel
,IDynamicBakedModel
- All Known Implementing Classes:
B3DLoader.BakedWrapper
,BakedItemModel
,BakedItemModel.BakedGuiItemModel
,BakedModelWrapper
,BuiltInModel
,CompositeModel
,FluidModel.BakedFluid
,FluidModel.CachingBakedFluid
,FullPotsAccessorDemo.ClientHandler.DioritePotModel
,ItemMultiLayerBakedModel
,MultiLayerModel.MultiLayerBakedModel
,MultipartBakedModel
,PerspectiveMapWrapper
,SeparatePerspectiveModel.BakedModel
,SimpleBakedModel
,TRSRTransformerTest.MyBakedModel
,WeightedBakedModel
public interface IForgeBakedModel
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Override to tell the new model loader that it shouldn't wrap this modeldefault IBakedModel
default List<com.mojang.datafixers.util.Pair<IBakedModel,
RenderType>> getLayerModels
(ItemStack itemStack, boolean fabulous) If returns true, this is called to get the list of layers to draw.default IModelData
getModelData
(IBlockDisplayReader world, BlockPos pos, BlockState state, IModelData tileData) default TextureAtlasSprite
getParticleTexture
(IModelData data) getQuads
(BlockState state, Direction side, Random rand, IModelData extraData) default IBakedModel
handlePerspective
(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat) default boolean
isAmbientOcclusion
(BlockState state) default boolean
Override to true, to tell forge to call the getLayerModels method below.
-
Method Details
-
getBakedModel
-
getQuads
@Nonnull default List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, @Nonnull Random rand, @Nonnull IModelData extraData) -
isAmbientOcclusion
-
doesHandlePerspectives
default boolean doesHandlePerspectives()Override to tell the new model loader that it shouldn't wrap this model -
handlePerspective
default IBakedModel handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat) -
getModelData
@Nonnull default IModelData getModelData(@Nonnull IBlockDisplayReader world, @Nonnull BlockPos pos, @Nonnull BlockState state, @Nonnull IModelData tileData) -
getParticleTexture
-
isLayered
default boolean isLayered()Override to true, to tell forge to call the getLayerModels method below. -
getLayerModels
default List<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>> getLayerModels(ItemStack itemStack, boolean fabulous) If returns true, this is called to get the list of layers to draw.
-