private static class ModelFluid.BakedFluid extends java.lang.Object implements IBakedModel
Modifier and Type | Class and Description |
---|---|
private static interface |
ModelFluid.BakedFluid.VertexParameter |
Modifier and Type | Field and Description |
---|---|
protected int |
color |
private static float |
eps |
protected com.google.common.collect.ImmutableMap<EnumFacing,com.google.common.collect.ImmutableList<BakedQuad>> |
faceQuads |
protected TextureAtlasSprite |
flowing |
protected VertexFormat |
format |
protected boolean |
gas |
protected java.util.Optional<TextureAtlasSprite> |
overlay |
protected TextureAtlasSprite |
still |
protected java.util.Optional<TRSRTransformation> |
transformation |
protected com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TRSRTransformation> |
transforms |
private static int[] |
x |
private static int[] |
z |
Constructor and Description |
---|
BakedFluid(java.util.Optional<TRSRTransformation> transformation,
com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TRSRTransformation> transforms,
VertexFormat format,
int color,
TextureAtlasSprite still,
TextureAtlasSprite flowing,
java.util.Optional<TextureAtlasSprite> overlay,
boolean gas,
boolean statePresent,
int[] cornerRound,
int flowRound,
boolean[] sideOverlays) |
Modifier and Type | Method and Description |
---|---|
private BakedQuad |
buildQuad(EnumFacing side,
TextureAtlasSprite texture,
boolean flip,
boolean offset,
ModelFluid.BakedFluid.VertexParameter x,
ModelFluid.BakedFluid.VertexParameter y,
ModelFluid.BakedFluid.VertexParameter z,
ModelFluid.BakedFluid.VertexParameter u,
ModelFluid.BakedFluid.VertexParameter v) |
private com.google.common.collect.ImmutableMap<EnumFacing,com.google.common.collect.ImmutableList<BakedQuad>> |
buildQuads(boolean statePresent,
int[] cornerRound,
int flowRound,
boolean[] sideOverlays) |
ItemOverrideList |
getOverrides() |
TextureAtlasSprite |
getParticleTexture() |
java.util.List<BakedQuad> |
getQuads(IBlockState state,
EnumFacing side,
long rand) |
org.apache.commons.lang3.tuple.Pair<? extends IBakedModel,javax.vecmath.Matrix4f> |
handlePerspective(ItemCameraTransforms.TransformType type) |
boolean |
isAmbientOcclusion() |
boolean |
isBuiltInRenderer() |
boolean |
isGui3d() |
private void |
putVertex(IVertexConsumer consumer,
EnumFacing side,
boolean offset,
float x,
float y,
float z,
float u,
float v) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getItemCameraTransforms, isAmbientOcclusion
private static final int[] x
private static final int[] z
private static final float eps
protected final java.util.Optional<TRSRTransformation> transformation
protected final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TRSRTransformation> transforms
protected final VertexFormat format
protected final int color
protected final TextureAtlasSprite still
protected final TextureAtlasSprite flowing
protected final java.util.Optional<TextureAtlasSprite> overlay
protected final boolean gas
protected final com.google.common.collect.ImmutableMap<EnumFacing,com.google.common.collect.ImmutableList<BakedQuad>> faceQuads
public BakedFluid(java.util.Optional<TRSRTransformation> transformation, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TRSRTransformation> transforms, VertexFormat format, int color, TextureAtlasSprite still, TextureAtlasSprite flowing, java.util.Optional<TextureAtlasSprite> overlay, boolean gas, boolean statePresent, int[] cornerRound, int flowRound, boolean[] sideOverlays)
private com.google.common.collect.ImmutableMap<EnumFacing,com.google.common.collect.ImmutableList<BakedQuad>> buildQuads(boolean statePresent, int[] cornerRound, int flowRound, boolean[] sideOverlays)
private BakedQuad buildQuad(EnumFacing side, TextureAtlasSprite texture, boolean flip, boolean offset, ModelFluid.BakedFluid.VertexParameter x, ModelFluid.BakedFluid.VertexParameter y, ModelFluid.BakedFluid.VertexParameter z, ModelFluid.BakedFluid.VertexParameter u, ModelFluid.BakedFluid.VertexParameter v)
private void putVertex(IVertexConsumer consumer, EnumFacing side, boolean offset, float x, float y, float z, float u, float v)
public boolean isAmbientOcclusion()
isAmbientOcclusion
in interface IBakedModel
public boolean isGui3d()
isGui3d
in interface IBakedModel
public boolean isBuiltInRenderer()
isBuiltInRenderer
in interface IBakedModel
public TextureAtlasSprite getParticleTexture()
getParticleTexture
in interface IBakedModel
public java.util.List<BakedQuad> getQuads(@Nullable IBlockState state, @Nullable EnumFacing side, long rand)
getQuads
in interface IBakedModel
public ItemOverrideList getOverrides()
getOverrides
in interface IBakedModel
public org.apache.commons.lang3.tuple.Pair<? extends IBakedModel,javax.vecmath.Matrix4f> handlePerspective(ItemCameraTransforms.TransformType type)
handlePerspective
in interface IBakedModel