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
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
private static final float
protected final com.google.common.collect.ImmutableMap<Direction,
com.google.common.collect.ImmutableList<BakedQuad>> protected final TextureAtlasSprite
protected final boolean
protected final ResourceLocation
protected final Optional<TextureAtlasSprite>
protected final TextureAtlasSprite
protected final TransformationMatrix
protected final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,
TransformationMatrix> private static final int[]
private static final int[]
-
Constructor Summary
ConstructorDescriptionBakedFluid
(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 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) private com.google.common.collect.ImmutableMap<Direction,
com.google.common.collect.ImmutableList<BakedQuad>> buildQuads
(boolean statePresent, int[] cornerRound, int flowRound, boolean[] sideOverlays) boolean
Override to tell the new model loader that it shouldn't wrap this modelgetQuads
(BlockState state, Direction side, Random rand) boolean
boolean
isGui3d()
private void
putVertex
(IVertexConsumer consumer, Direction side, boolean offset, float x, float y, float z, float u, float v) boolean
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.renderer.model.IBakedModel
getTransforms
Methods 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:
useAmbientOcclusion
in interfaceIBakedModel
-
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
- Specified by:
getParticleIcon
in interfaceIBakedModel
-
getQuads
- Specified by:
getQuads
in interfaceIBakedModel
-
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
- Specified by:
handlePerspective
in interfaceIForgeBakedModel
-