private static class FluidModel.BakedFluid extends java.lang.Object implements IBakedModel
Modifier and Type | Class and Description |
---|---|
private static interface |
FluidModel.BakedFluid.VertexParameter |
Modifier and Type | Field and 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 and 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) |
Modifier and Type | Method and 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 model
|
boolean |
func_230044_c_() |
ItemOverrideList |
getOverrides() |
TextureAtlasSprite |
getParticleTexture() |
java.util.List<BakedQuad> |
getQuads(BlockState state,
Direction side,
java.util.Random rand) |
IBakedModel |
handlePerspective(ItemCameraTransforms.TransformType type,
MatrixStack mat) |
boolean |
isAmbientOcclusion() |
boolean |
isBuiltInRenderer() |
boolean |
isGui3d() |
private void |
putVertex(IVertexConsumer consumer,
Direction 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
getBakedModel, getModelData, getParticleTexture, getQuads, isAmbientOcclusion
private static final int[] x
private static final int[] z
private static final float eps
protected final TransformationMatrix transformation
protected final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms
protected final ResourceLocation modelLocation
protected final int color
protected final TextureAtlasSprite still
protected final TextureAtlasSprite flowing
protected final java.util.Optional<TextureAtlasSprite> overlay
protected final boolean gas
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)
private com.google.common.collect.ImmutableMap<Direction,com.google.common.collect.ImmutableList<BakedQuad>> buildQuads(boolean statePresent, int[] cornerRound, int flowRound, boolean[] sideOverlays)
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 void putVertex(IVertexConsumer consumer, Direction 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 func_230044_c_()
func_230044_c_
in interface IBakedModel
public boolean isBuiltInRenderer()
isBuiltInRenderer
in interface IBakedModel
public TextureAtlasSprite getParticleTexture()
getParticleTexture
in interface IBakedModel
public java.util.List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, java.util.Random rand)
getQuads
in interface IBakedModel
public ItemOverrideList getOverrides()
getOverrides
in interface IBakedModel
public boolean doesHandlePerspectives()
IForgeBakedModel
doesHandlePerspectives
in interface IForgeBakedModel
public IBakedModel handlePerspective(ItemCameraTransforms.TransformType type, MatrixStack mat)
handlePerspective
in interface IForgeBakedModel