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
private static class FluidModel.BakedFluid extends java.lang.Object implements IBakedModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static interfaceFluidModel.BakedFluid.VertexParameter
-
Field Summary
Fields Modifier and Type Field Description protected intcolorprivate static floatepsprotected com.google.common.collect.ImmutableMap<Direction,com.google.common.collect.ImmutableList<BakedQuad>>faceQuadsprotected TextureAtlasSpriteflowingprotected booleangasprotected ResourceLocationmodelLocationprotected java.util.Optional<TextureAtlasSprite>overlayprotected TextureAtlasSpritestillprotected TransformationMatrixtransformationprotected com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix>transformsprivate static int[]xprivate static int[]z
-
Constructor Summary
Constructors Constructor Description BakedFluid(TransformationMatrix transformation, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms, ResourceLocation modelLocation, int color, TextureAtlasSprite still, TextureAtlasSprite flowing, java.util.Optional<TextureAtlasSprite> overlay, boolean gas, boolean statePresent, int[] cornerRound, int flowRound, boolean[] sideOverlays)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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)booleandoesHandlePerspectives()Override to tell the new model loader that it shouldn't wrap this modelItemOverrideListgetOverrides()TextureAtlasSpritegetParticleIcon()java.util.List<BakedQuad>getQuads(BlockState state, Direction side, java.util.Random rand)IBakedModelhandlePerspective(ItemCameraTransforms.TransformType type, MatrixStack mat)booleanisCustomRenderer()booleanisGui3d()private voidputVertex(IVertexConsumer consumer, Direction side, boolean offset, float x, float y, float z, float u, float v)booleanuseAmbientOcclusion()booleanusesBlockLight()-
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 Detail
-
x
private static final int[] x
-
z
private static final int[] z
-
eps
private static final float eps
- See Also:
- Constant Field Values
-
transformation
protected final TransformationMatrix transformation
-
transforms
protected final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms
-
modelLocation
protected final ResourceLocation modelLocation
-
color
protected final int color
-
still
protected final TextureAtlasSprite still
-
flowing
protected final TextureAtlasSprite flowing
-
overlay
protected final java.util.Optional<TextureAtlasSprite> overlay
-
gas
protected final boolean gas
-
-
Constructor Detail
-
BakedFluid
public BakedFluid(TransformationMatrix transformation, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms, ResourceLocation modelLocation, int color, TextureAtlasSprite still, TextureAtlasSprite flowing, java.util.Optional<TextureAtlasSprite> overlay, boolean gas, boolean statePresent, int[] cornerRound, int flowRound, boolean[] sideOverlays)
-
-
Method Detail
-
buildQuads
private com.google.common.collect.ImmutableMap<Direction,com.google.common.collect.ImmutableList<BakedQuad>> buildQuads(boolean statePresent, int[] cornerRound, int flowRound, boolean[] sideOverlays)
-
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
public TextureAtlasSprite getParticleIcon()
- Specified by:
getParticleIconin interfaceIBakedModel
-
getQuads
public java.util.List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, java.util.Random rand)
- Specified by:
getQuadsin interfaceIBakedModel
-
getOverrides
public ItemOverrideList 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
public IBakedModel handlePerspective(ItemCameraTransforms.TransformType type, MatrixStack mat)
- Specified by:
handlePerspectivein interfaceIForgeBakedModel
-
-