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
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 Transformationprotected final com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,Transformation> private static final int[]private static final int[] -
Constructor Summary
ConstructorsConstructorDescriptionBakedFluid(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 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) handlePerspective(ItemTransforms.TransformType type, PoseStack poseStack) 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.resources.model.BakedModel
getTransformsMethods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel
getLayerModels, getModelData, getParticleIcon, getQuads, isLayered, useAmbientOcclusion
-
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<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:
useAmbientOcclusionin interfaceBakedModel
-
isGui3d
public boolean isGui3d()- Specified by:
isGui3din interfaceBakedModel
-
usesBlockLight
public boolean usesBlockLight()- Specified by:
usesBlockLightin interfaceBakedModel
-
isCustomRenderer
public boolean isCustomRenderer()- Specified by:
isCustomRendererin interfaceBakedModel
-
getParticleIcon
- Specified by:
getParticleIconin interfaceBakedModel
-
getQuads
- Specified by:
getQuadsin interfaceBakedModel
-
getOverrides
- Specified by:
getOverridesin interfaceBakedModel
-
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
-