Package net.minecraftforge.client.model
Class FluidModel.BakedFluid
java.lang.Object
net.minecraftforge.client.model.FluidModel.BakedFluid
- All Implemented Interfaces:
IBakedModel,IForgeBakedModel
- Direct Known Subclasses:
FluidModel.CachingBakedFluid
- Enclosing class:
- FluidModel
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprivate static final floatprotected final com.google.common.collect.ImmutableMap<Direction,com.google.common.collect.ImmutableList<BakedQuad>> protected final TextureAtlasSpriteprotected final booleanprotected final ResourceLocationprotected final Optional<TextureAtlasSprite>protected final TextureAtlasSpriteprotected final TransformationMatrixprotected final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> private static final int[]private static final int[] -
Constructor Summary
ConstructorsConstructorDescriptionBakedFluid(TransformationMatrix transformation, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType, TransformationMatrix> transforms, ResourceLocation modelLocation, int color, TextureAtlasSprite still, TextureAtlasSprite flowing, Optional<TextureAtlasSprite> overlay, boolean gas, boolean statePresent, int[] cornerRound, int flowRound, boolean[] sideOverlays) -
Method Summary
Modifier and TypeMethodDescriptionprivate BakedQuadbuildQuad(Direction side, TextureAtlasSprite texture, boolean flip, boolean offset, FluidModel.BakedFluid.VertexParameter x, FluidModel.BakedFluid.VertexParameter y, FluidModel.BakedFluid.VertexParameter z, FluidModel.BakedFluid.VertexParameter u, FluidModel.BakedFluid.VertexParameter v) private com.google.common.collect.ImmutableMap<Direction,com.google.common.collect.ImmutableList<BakedQuad>> buildQuads(boolean statePresent, int[] cornerRound, int flowRound, boolean[] sideOverlays) booleanOverride to tell the new model loader that it shouldn't wrap this modelgetQuads(BlockState state, Direction side, Random rand) booleanbooleanisGui3d()private voidputVertex(IVertexConsumer consumer, Direction side, boolean offset, float x, float y, float z, float u, float v) booleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.renderer.model.IBakedModel
getTransformsMethods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel
getBakedModel, getLayerModels, getModelData, getParticleTexture, getQuads, isAmbientOcclusion, isLayered
-
Field Details
-
x
private static final int[] x -
z
private static final int[] z -
eps
private static final float eps- See Also:
-
transformation
-
transforms
protected final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms -
modelLocation
-
color
protected final int color -
still
-
flowing
-
overlay
-
gas
protected final boolean gas -
faceQuads
-
-
Constructor Details
-
BakedFluid
public BakedFluid(TransformationMatrix transformation, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType, TransformationMatrix> transforms, ResourceLocation modelLocation, int color, TextureAtlasSprite still, TextureAtlasSprite flowing, Optional<TextureAtlasSprite> overlay, boolean gas, boolean statePresent, int[] cornerRound, int flowRound, boolean[] sideOverlays)
-
-
Method Details
-
buildQuads
-
buildQuad
private BakedQuad buildQuad(Direction side, TextureAtlasSprite texture, boolean flip, boolean offset, FluidModel.BakedFluid.VertexParameter x, FluidModel.BakedFluid.VertexParameter y, FluidModel.BakedFluid.VertexParameter z, FluidModel.BakedFluid.VertexParameter u, FluidModel.BakedFluid.VertexParameter v) -
putVertex
private void putVertex(IVertexConsumer consumer, Direction side, boolean offset, float x, float y, float z, float u, float v) -
useAmbientOcclusion
public boolean useAmbientOcclusion()- Specified by:
useAmbientOcclusionin interfaceIBakedModel
-
isGui3d
public boolean isGui3d()- Specified by:
isGui3din interfaceIBakedModel
-
usesBlockLight
public boolean usesBlockLight()- Specified by:
usesBlockLightin interfaceIBakedModel
-
isCustomRenderer
public boolean isCustomRenderer()- Specified by:
isCustomRendererin interfaceIBakedModel
-
getParticleIcon
- Specified by:
getParticleIconin interfaceIBakedModel
-
getQuads
- Specified by:
getQuadsin interfaceIBakedModel
-
getOverrides
- Specified by:
getOverridesin interfaceIBakedModel
-
doesHandlePerspectives
public boolean doesHandlePerspectives()Description copied from interface:IForgeBakedModelOverride to tell the new model loader that it shouldn't wrap this model- Specified by:
doesHandlePerspectivesin interfaceIForgeBakedModel
-
handlePerspective
- Specified by:
handlePerspectivein interfaceIForgeBakedModel
-