Package net.minecraftforge.client.model
Class FluidModel.BakedFluid
java.lang.Object
net.minecraftforge.client.model.FluidModel.BakedFluid
- All Implemented Interfaces:
BakedModel
,IForgeBakedModel
- Direct Known Subclasses:
FluidModel.CachingBakedFluid
- Enclosing class:
- FluidModel
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
private static float
protected com.google.common.collect.ImmutableMap<Direction,com.google.common.collect.ImmutableList<BakedQuad>>
protected TextureAtlasSprite
protected boolean
protected ResourceLocation
protected Optional<TextureAtlasSprite>
protected TextureAtlasSprite
protected Transformation
protected com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,Transformation>
private static int[]
private static int[]
-
Constructor Summary
ConstructorDescriptionBakedFluid(Transformation transformation, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,Transformation> 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)
handlePerspective(ItemTransforms.TransformType type, PoseStack poseStack)
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.resources.model.BakedModel
getTransforms
Methods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel
getLayerModels, getModelData, getParticleIcon, 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:
- Constant Field Values
-
transformation
-
transforms
protected final com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,Transformation> transforms -
modelLocation
-
color
protected final int color -
still
-
flowing
-
overlay
-
gas
protected final boolean gas -
faceQuads
-
-
Constructor Details
-
BakedFluid
public BakedFluid(Transformation transformation, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,Transformation> 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 interfaceBakedModel
-
isGui3d
public boolean isGui3d()- Specified by:
isGui3d
in interfaceBakedModel
-
usesBlockLight
public boolean usesBlockLight()- Specified by:
usesBlockLight
in interfaceBakedModel
-
isCustomRenderer
public boolean isCustomRenderer()- Specified by:
isCustomRenderer
in interfaceBakedModel
-
getParticleIcon
- Specified by:
getParticleIcon
in interfaceBakedModel
-
getQuads
- Specified by:
getQuads
in interfaceBakedModel
-
getOverrides
- Specified by:
getOverrides
in interfaceBakedModel
-
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
-