Class FluidRenderFace
java.lang.Object
alexiil.mc.lib.attributes.fluid.render.FluidRenderFace
public final class FluidRenderFace
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description boolean
flowing
If true then the renderer should use the centre 16x of the flowing sprite (assuming the texture is 32x), otherwise it should use the still sprite.static int
FULL_LIGHT
int
light
float
nx
float
ny
float
nz
double
u0
double
u1
double
u2
double
u3
double
v0
double
v1
double
v2
double
v3
double
x0
double
x1
double
x2
double
x3
double
y0
double
y1
double
y2
double
y3
double
z0
double
z1
double
z2
double
z3
-
Constructor Summary
Constructors Constructor Description FluidRenderFace(double _x0, double _y0, double _z0, double _u0, double _v0, double _x1, double _y1, double _z1, double _u1, double _v1, double _x2, double _y2, double _z2, double _u2, double _v2, double _x3, double _y3, double _z3, double _u3, double _v3)
FluidRenderFace(double _x0, double _y0, double _z0, double _u0, double _v0, double _x1, double _y1, double _z1, double _u1, double _v1, double _x2, double _y2, double _z2, double _u2, double _v2, double _x3, double _y3, double _z3, double _u3, double _v3, boolean flowing)
FluidRenderFace(double _x0, double _y0, double _z0, double _u0, double _v0, double _x1, double _y1, double _z1, double _u1, double _v1, double _x2, double _y2, double _z2, double _u2, double _v2, double _x3, double _y3, double _z3, double _u3, double _v3, int light, float nx, float ny, float nz, boolean flowing)
-
Method Summary
Modifier and Type Method Description static void
appendCuboid(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, java.util.EnumSet<net.minecraft.util.math.Direction> faces, java.util.List<FluidRenderFace> to)
static void
appendCuboid(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, java.util.EnumSet<net.minecraft.util.math.Direction> faces, java.util.List<FluidRenderFace> to, boolean flowing)
static FluidRenderFace
createFlatFace(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, net.minecraft.util.math.Direction face)
static FluidRenderFace
createFlatFace(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, net.minecraft.util.math.Direction face, boolean flowing)
static FluidRenderFace
createFlatFaceX(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, boolean positive)
static FluidRenderFace
createFlatFaceX(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, boolean positive, boolean flowing)
static FluidRenderFace
createFlatFaceY(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, boolean positive)
static FluidRenderFace
createFlatFaceY(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, boolean positive, boolean flowing)
static FluidRenderFace
createFlatFaceZ(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, boolean positive)
static FluidRenderFace
createFlatFaceZ(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, boolean positive, boolean flowing)
float
getU(net.minecraft.client.texture.Sprite still, net.minecraft.client.texture.Sprite flowing, double u)
float
getV(net.minecraft.client.texture.Sprite still, net.minecraft.client.texture.Sprite flowing, double v)
java.lang.String
toString()
-
Field Details
-
FULL_LIGHT
public static final int FULL_LIGHT- See Also:
- Constant Field Values
-
x0
public final double x0 -
y0
public final double y0 -
z0
public final double z0 -
u0
public final double u0 -
v0
public final double v0 -
x1
public final double x1 -
y1
public final double y1 -
z1
public final double z1 -
u1
public final double u1 -
v1
public final double v1 -
x2
public final double x2 -
y2
public final double y2 -
z2
public final double z2 -
u2
public final double u2 -
v2
public final double v2 -
x3
public final double x3 -
y3
public final double y3 -
z3
public final double z3 -
u3
public final double u3 -
v3
public final double v3 -
light
public int light -
nx
public final float nx -
ny
public final float ny -
nz
public final float nz -
flowing
public final boolean flowingIf true then the renderer should use the centre 16x of the flowing sprite (assuming the texture is 32x), otherwise it should use the still sprite.
-
-
Constructor Details
-
FluidRenderFace
public FluidRenderFace(double _x0, double _y0, double _z0, double _u0, double _v0, double _x1, double _y1, double _z1, double _u1, double _v1, double _x2, double _y2, double _z2, double _u2, double _v2, double _x3, double _y3, double _z3, double _u3, double _v3) -
FluidRenderFace
public FluidRenderFace(double _x0, double _y0, double _z0, double _u0, double _v0, double _x1, double _y1, double _z1, double _u1, double _v1, double _x2, double _y2, double _z2, double _u2, double _v2, double _x3, double _y3, double _z3, double _u3, double _v3, boolean flowing) -
FluidRenderFace
public FluidRenderFace(double _x0, double _y0, double _z0, double _u0, double _v0, double _x1, double _y1, double _z1, double _u1, double _v1, double _x2, double _y2, double _z2, double _u2, double _v2, double _x3, double _y3, double _z3, double _u3, double _v3, int light, float nx, float ny, float nz, boolean flowing)
-
-
Method Details
-
appendCuboid
public static void appendCuboid(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, java.util.EnumSet<net.minecraft.util.math.Direction> faces, java.util.List<FluidRenderFace> to) -
appendCuboid
public static void appendCuboid(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, java.util.EnumSet<net.minecraft.util.math.Direction> faces, java.util.List<FluidRenderFace> to, boolean flowing) -
createFlatFaceX
public static FluidRenderFace createFlatFaceX(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, boolean positive) -
createFlatFaceX
public static FluidRenderFace createFlatFaceX(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, boolean positive, boolean flowing) -
createFlatFaceY
public static FluidRenderFace createFlatFaceY(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, boolean positive) -
createFlatFaceY
public static FluidRenderFace createFlatFaceY(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, boolean positive, boolean flowing) -
createFlatFaceZ
public static FluidRenderFace createFlatFaceZ(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, boolean positive) -
createFlatFaceZ
public static FluidRenderFace createFlatFaceZ(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, boolean positive, boolean flowing) -
createFlatFace
public static FluidRenderFace createFlatFace(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, net.minecraft.util.math.Direction face) -
createFlatFace
public static FluidRenderFace createFlatFace(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, net.minecraft.util.math.Direction face, boolean flowing) -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getU
public float getU(net.minecraft.client.texture.Sprite still, net.minecraft.client.texture.Sprite flowing, double u) -
getV
public float getV(net.minecraft.client.texture.Sprite still, net.minecraft.client.texture.Sprite flowing, double v)
-