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, waitgetItemCameraTransformsgetBakedModel, getModelData, getParticleTexture, getQuads, isAmbientOcclusionprivate 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 IBakedModelpublic boolean isGui3d()
isGui3d in interface IBakedModelpublic boolean func_230044_c_()
func_230044_c_ in interface IBakedModelpublic boolean isBuiltInRenderer()
isBuiltInRenderer in interface IBakedModelpublic TextureAtlasSprite getParticleTexture()
getParticleTexture in interface IBakedModelpublic java.util.List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, java.util.Random rand)
getQuads in interface IBakedModelpublic ItemOverrideList getOverrides()
getOverrides in interface IBakedModelpublic boolean doesHandlePerspectives()
IForgeBakedModeldoesHandlePerspectives in interface IForgeBakedModelpublic IBakedModel handlePerspective(ItemCameraTransforms.TransformType type, MatrixStack mat)
handlePerspective in interface IForgeBakedModel