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 interface
FluidModel.BakedFluid.VertexParameter
-
Field Summary
Fields Modifier and Type Field Description protected int
color
private static float
eps
protected com.google.common.collect.ImmutableMap<Direction,com.google.common.collect.ImmutableList<BakedQuad>>
faceQuads
protected TextureAtlasSprite
flowing
protected boolean
gas
protected ResourceLocation
modelLocation
protected java.util.Optional<TextureAtlasSprite>
overlay
protected TextureAtlasSprite
still
protected TransformationMatrix
transformation
protected com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix>
transforms
private static int[]
x
private 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 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
doesHandlePerspectives()
Override to tell the new model loader that it shouldn't wrap this modelItemOverrideList
getOverrides()
TextureAtlasSprite
getParticleIcon()
java.util.List<BakedQuad>
getQuads(BlockState state, Direction side, java.util.Random rand)
IBakedModel
handlePerspective(ItemCameraTransforms.TransformType type, MatrixStack mat)
boolean
isCustomRenderer()
boolean
isGui3d()
private void
putVertex(IVertexConsumer consumer, Direction side, boolean offset, float x, float y, float z, float u, float v)
boolean
useAmbientOcclusion()
boolean
usesBlockLight()
-
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:
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
public TextureAtlasSprite getParticleIcon()
- Specified by:
getParticleIcon
in interfaceIBakedModel
-
getQuads
public java.util.List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, java.util.Random rand)
- Specified by:
getQuads
in interfaceIBakedModel
-
getOverrides
public ItemOverrideList 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
public IBakedModel handlePerspective(ItemCameraTransforms.TransformType type, MatrixStack mat)
- Specified by:
handlePerspective
in interfaceIForgeBakedModel
-
-