Interface TexturedSink

All Superinterfaces:
MeshSink

public interface TexturedSink extends MeshSink
Takes textured quads: four vertices per quad, in order around it. Each vertex is a position, texture coordinates, a normal and a colour that multiplies the texture. With lighting on, the normal shades the quad as Minecraft 1.8.9 shades entities: two fixed directional lights and an ambient term (see MeshRenderer.lighting(boolean)).
  • Method Summary

    Modifier and Type
    Method
    Description
    transform(float[] matrix)
    Sets the transform for the vertices that follow.
    vertex(float x, float y, float z, float u, float v, float nx, float ny, float nz, int argb)
    Writes one vertex.
  • Method Details

    • vertex

      TexturedSink vertex(float x, float y, float z, float u, float v, float nx, float ny, float nz, int argb)
      Writes one vertex.
      Parameters:
      x - x
      y - y
      z - z
      u - texture u
      v - texture v
      nx - normal x
      ny - normal y
      nz - normal z
      argb - the tint, 0xAARRGGBB; 0xFFFFFFFF for none
      Returns:
      this sink
    • transform

      TexturedSink transform(float[] matrix)
      Description copied from interface: MeshSink
      Sets the transform for the vertices that follow. The matrix is copied.
      Specified by:
      transform in interface MeshSink
      Parameters:
      matrix - a column-major 4x4 matrix, or null for none
      Returns:
      this sink