Class MultipartBakedModel
- java.lang.Object
-
- net.minecraft.client.renderer.model.MultipartBakedModel
-
- All Implemented Interfaces:
IBakedModel
,IForgeBakedModel
,IDynamicBakedModel
public class MultipartBakedModel extends java.lang.Object implements IDynamicBakedModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultipartBakedModel.Builder
-
Field Summary
Fields Modifier and Type Field Description private IBakedModel
defaultModel
protected boolean
hasAmbientOcclusion
protected boolean
isGui3d
protected ItemOverrideList
overrides
protected TextureAtlasSprite
particleIcon
private java.util.Map<BlockState,java.util.BitSet>
selectorCache
private java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.function.Predicate<BlockState>,IBakedModel>>
selectors
protected ItemCameraTransforms
transforms
protected boolean
usesBlockLight
-
Constructor Summary
Constructors Constructor Description MultipartBakedModel(java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.function.Predicate<BlockState>,IBakedModel>> p_i48273_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IModelData
getModelData(IBlockDisplayReader world, BlockPos pos, BlockState state, IModelData tileData)
ItemOverrideList
getOverrides()
TextureAtlasSprite
getParticleIcon()
Deprecated.TextureAtlasSprite
getParticleTexture(IModelData modelData)
java.util.List<BakedQuad>
getQuads(BlockState p_200117_1_, Direction p_200117_2_, java.util.Random p_200117_3_, IModelData modelData)
ItemCameraTransforms
getTransforms()
Deprecated.IBakedModel
handlePerspective(ItemCameraTransforms.TransformType transformType, MatrixStack matrixStack)
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.model.data.IDynamicBakedModel
getQuads
-
Methods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel
doesHandlePerspectives, getBakedModel, getLayerModels, isLayered
-
-
-
-
Field Detail
-
selectors
private final java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.function.Predicate<BlockState>,IBakedModel>> selectors
-
hasAmbientOcclusion
protected final boolean hasAmbientOcclusion
-
isGui3d
protected final boolean isGui3d
-
usesBlockLight
protected final boolean usesBlockLight
-
particleIcon
protected final TextureAtlasSprite particleIcon
-
transforms
protected final ItemCameraTransforms transforms
-
overrides
protected final ItemOverrideList overrides
-
selectorCache
private final java.util.Map<BlockState,java.util.BitSet> selectorCache
-
defaultModel
private final IBakedModel defaultModel
-
-
Constructor Detail
-
MultipartBakedModel
public MultipartBakedModel(java.util.List<org.apache.commons.lang3.tuple.Pair<java.util.function.Predicate<BlockState>,IBakedModel>> p_i48273_1_)
-
-
Method Detail
-
getQuads
public java.util.List<BakedQuad> getQuads(@Nullable BlockState p_200117_1_, @Nullable Direction p_200117_2_, java.util.Random p_200117_3_, IModelData modelData)
- Specified by:
getQuads
in interfaceIDynamicBakedModel
- Specified by:
getQuads
in interfaceIForgeBakedModel
-
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
@Deprecated public TextureAtlasSprite getParticleIcon()
Deprecated.- Specified by:
getParticleIcon
in interfaceIBakedModel
-
getParticleTexture
public TextureAtlasSprite getParticleTexture(IModelData modelData)
- Specified by:
getParticleTexture
in interfaceIForgeBakedModel
-
getTransforms
@Deprecated public ItemCameraTransforms getTransforms()
Deprecated.- Specified by:
getTransforms
in interfaceIBakedModel
-
handlePerspective
public IBakedModel handlePerspective(ItemCameraTransforms.TransformType transformType, MatrixStack matrixStack)
- Specified by:
handlePerspective
in interfaceIForgeBakedModel
-
getOverrides
public ItemOverrideList getOverrides()
- Specified by:
getOverrides
in interfaceIBakedModel
-
getModelData
public IModelData getModelData(IBlockDisplayReader world, BlockPos pos, BlockState state, IModelData tileData)
- Specified by:
getModelData
in interfaceIForgeBakedModel
-
-