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 SummaryNested Classes
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionBakedFluid(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 SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.resources.model.BakedModelgetTransformsMethods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModelgetLayerModels, getModelData, getParticleIcon, getQuads, isLayered, useAmbientOcclusion
- 
Field Details- 
xprivate static final int[] x
- 
zprivate static final int[] z
- 
epsprivate static final float eps- See Also:
 
- 
transformation
- 
transformsprotected final com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,Transformation> transforms
- 
modelLocation
- 
colorprotected final int color
- 
still
- 
flowing
- 
overlay
- 
gasprotected final boolean gas
- 
faceQuads
 
- 
- 
Constructor Details- 
BakedFluidpublic 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
- 
buildQuadprivate 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) 
- 
putVertexprivate void putVertex(IVertexConsumer consumer, Direction side, boolean offset, float x, float y, float z, float u, float v) 
- 
useAmbientOcclusionpublic boolean useAmbientOcclusion()- Specified by:
- useAmbientOcclusionin interface- BakedModel
 
- 
isGui3dpublic boolean isGui3d()- Specified by:
- isGui3din interface- BakedModel
 
- 
usesBlockLightpublic boolean usesBlockLight()- Specified by:
- usesBlockLightin interface- BakedModel
 
- 
isCustomRendererpublic boolean isCustomRenderer()- Specified by:
- isCustomRendererin interface- BakedModel
 
- 
getParticleIcon- Specified by:
- getParticleIconin interface- BakedModel
 
- 
getQuads- Specified by:
- getQuadsin interface- BakedModel
 
- 
getOverrides- Specified by:
- getOverridesin interface- BakedModel
 
- 
doesHandlePerspectivespublic boolean doesHandlePerspectives()Description copied from interface:IForgeBakedModelOverride to tell the new model loader that it shouldn't wrap this model- Specified by:
- doesHandlePerspectivesin interface- IForgeBakedModel
 
- 
handlePerspective- Specified by:
- handlePerspectivein interface- IForgeBakedModel
 
 
-