Package net.minecraftforge.client.model
Class BakedModelWrapper<T extends IBakedModel>
- java.lang.Object
-
- net.minecraftforge.client.model.BakedModelWrapper<T>
-
- All Implemented Interfaces:
IBakedModel
,IForgeBakedModel
- Direct Known Subclasses:
BakedItemModel.BakedGuiItemModel
,FullPotsAccessorDemo.ClientHandler.DioritePotModel
public abstract class BakedModelWrapper<T extends IBakedModel> extends java.lang.Object implements IBakedModel
-
-
Field Summary
Fields Modifier and Type Field Description protected T
originalModel
-
Constructor Summary
Constructors Constructor Description BakedModelWrapper(T originalModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doesHandlePerspectives()
Override to tell the new model loader that it shouldn't wrap this modelIModelData
getModelData(IBlockDisplayReader world, BlockPos pos, BlockState state, IModelData tileData)
ItemOverrideList
getOverrides()
TextureAtlasSprite
getParticleIcon()
TextureAtlasSprite
getParticleTexture(IModelData data)
java.util.List<BakedQuad>
getQuads(BlockState state, Direction side, java.util.Random rand)
java.util.List<BakedQuad>
getQuads(BlockState state, Direction side, java.util.Random rand, IModelData extraData)
ItemCameraTransforms
getTransforms()
IBakedModel
handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat)
boolean
isAmbientOcclusion(BlockState state)
boolean
isCustomRenderer()
boolean
isGui3d()
boolean
useAmbientOcclusion()
boolean
usesBlockLight()
-
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.extensions.IForgeBakedModel
getBakedModel, getLayerModels, isLayered
-
-
-
-
Field Detail
-
originalModel
protected final T extends IBakedModel originalModel
-
-
Constructor Detail
-
BakedModelWrapper
public BakedModelWrapper(T originalModel)
-
-
Method Detail
-
getQuads
public java.util.List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, java.util.Random rand)
- Specified by:
getQuads
in interfaceIBakedModel
-
useAmbientOcclusion
public boolean useAmbientOcclusion()
- Specified by:
useAmbientOcclusion
in interfaceIBakedModel
-
isAmbientOcclusion
public boolean isAmbientOcclusion(BlockState state)
- Specified by:
isAmbientOcclusion
in interfaceIForgeBakedModel
-
isGui3d
public boolean isGui3d()
- Specified by:
isGui3d
in interfaceIBakedModel
-
usesBlockLight
public boolean usesBlockLight()
- Specified by:
usesBlockLight
in interfaceIBakedModel
-
isCustomRenderer
public boolean isCustomRenderer()
- Specified by:
isCustomRenderer
in interfaceIBakedModel
-
getParticleIcon
public TextureAtlasSprite getParticleIcon()
- Specified by:
getParticleIcon
in interfaceIBakedModel
-
getTransforms
public ItemCameraTransforms getTransforms()
- Specified by:
getTransforms
in interfaceIBakedModel
-
getOverrides
public ItemOverrideList getOverrides()
- Specified by:
getOverrides
in interfaceIBakedModel
-
doesHandlePerspectives
public boolean doesHandlePerspectives()
Description copied from interface:IForgeBakedModel
Override to tell the new model loader that it shouldn't wrap this model- Specified by:
doesHandlePerspectives
in interfaceIForgeBakedModel
-
handlePerspective
public IBakedModel handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat)
- Specified by:
handlePerspective
in interfaceIForgeBakedModel
-
getParticleTexture
public TextureAtlasSprite getParticleTexture(@Nonnull IModelData data)
- Specified by:
getParticleTexture
in interfaceIForgeBakedModel
-
getQuads
@Nonnull public java.util.List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, @Nonnull java.util.Random rand, @Nonnull IModelData extraData)
- Specified by:
getQuads
in interfaceIForgeBakedModel
-
getModelData
@Nonnull public IModelData getModelData(@Nonnull IBlockDisplayReader world, @Nonnull BlockPos pos, @Nonnull BlockState state, @Nonnull IModelData tileData)
- Specified by:
getModelData
in interfaceIForgeBakedModel
-
-