Class FluidRenderFace
java.lang.Object
alexiil.mc.lib.attributes.fluid.render.FluidRenderFace
-
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
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 final int
int
final float
final float
final float
final double
final double
final double
final double
final double
final double
final double
final double
final double
final double
final double
final double
final double
final double
final double
final double
final double
final double
final double
final double
-
Constructor Summary
ConstructorDescriptionFluidRenderFace
(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 TypeMethodDescriptionstatic void
appendCuboid
(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, EnumSet<net.minecraft.util.math.Direction> faces, List<FluidRenderFace> to) static void
appendCuboid
(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, EnumSet<net.minecraft.util.math.Direction> faces, 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) toString()
-
Field Details
-
FULL_LIGHT
public static final int FULL_LIGHT- See Also:
-
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, EnumSet<net.minecraft.util.math.Direction> faces, List<FluidRenderFace> to) -
appendCuboid
public static void appendCuboid(double x0, double y0, double z0, double x1, double y1, double z1, double textureScale, EnumSet<net.minecraft.util.math.Direction> faces, 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
-
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)
-