java.lang.Object
committee.nova.mods.avaritia.api.client.model.Quad
所有已实现的接口:
IVertexConsumer, IVertexProducer

public class Quad extends Object implements IVertexProducer, IVertexConsumer
A simple easy to manipulate quad format. Can be reset and then used on a different format.
  • 字段详细资料

    • format

      public CachedFormat format
    • tintIndex

      public int tintIndex
    • orientation

      public net.minecraft.core.Direction orientation
    • diffuseLighting

      public boolean diffuseLighting
    • sprite

      public net.minecraft.client.renderer.texture.TextureAtlasSprite sprite
    • vertices

      public Quad.Vertex[] vertices
    • full

      public boolean full
  • 构造器详细资料

    • Quad

      public Quad()
      Use this if you reset the quad each time you use it.
    • Quad

      public Quad(CachedFormat format)
      use this if you want to initialize the quad with a format.
      参数:
      format - The format.
  • 方法详细资料

    • getVertexFormat

      public com.mojang.blaze3d.vertex.VertexFormat getVertexFormat()
      指定者:
      getVertexFormat 在接口中 IVertexConsumer
    • setQuadTint

      public void setQuadTint(int tint)
      指定者:
      setQuadTint 在接口中 IVertexConsumer
    • setQuadOrientation

      public void setQuadOrientation(net.minecraft.core.Direction orientation)
      指定者:
      setQuadOrientation 在接口中 IVertexConsumer
    • setApplyDiffuseLighting

      public void setApplyDiffuseLighting(boolean diffuse)
      指定者:
      setApplyDiffuseLighting 在接口中 IVertexConsumer
    • setTexture

      public void setTexture(net.minecraft.client.renderer.texture.TextureAtlasSprite texture)
      指定者:
      setTexture 在接口中 IVertexConsumer
    • put

      public void put(int element, float... data)
      指定者:
      put 在接口中 IVertexConsumer
    • put

      public void put(Quad quad)
      从接口复制的说明: IVertexConsumer
      Assumes the data is already completely unpacked. You must always copy the data from the quad provided to an internal cache. basically: this.quad.put(quad);
      指定者:
      put 在接口中 IVertexConsumer
      参数:
      quad - The quad to copy data from.
    • pipe

      public void pipe(IVertexConsumer consumer)
      指定者:
      pipe 在接口中 IVertexProducer
      参数:
      consumer - consumer to receive the vertex data this producer can provide
    • resetInterp

      public InterpHelper resetInterp(InterpHelper helper, int s)
      Used to reset the interpolation values inside the provided helper.
      参数:
      helper - The helper.
      s - The axis. side >> 1;
      返回:
      The same helper.
    • clamp

      public void clamp(net.minecraft.world.phys.AABB bb)
      Clamps the Quad inside the box.
      参数:
      bb - The box.
    • clamp

      public void clamp(Cuboid6 cuboid)
      Clamps the Quad inside the box.
      参数:
      cuboid - The box.
    • calculateOrientation

      public void calculateOrientation(boolean setNormal)
      Re-calculates the Orientation of this quad, optionally the normal vector.
      参数:
      setNormal - If the normal vector should be updated.
    • copy

      public Quad copy()
      Used to create a new quad complete copy of this one.
      返回:
      The new quad.
    • copyFrom

      public Quad copyFrom(Quad quad)
      Copies the data inside the given quad to this one. This ignores VertexFormat, please make sure your quads are in the same format.
      参数:
      quad - The Quad to copy from.
      返回:
      This quad.
    • reset

      public void reset(CachedFormat format)
      Reset the quad to the new format.
      参数:
      format - The new format.
    • rewind

      public void rewind()
      Rewind this Quad without completely resetting it.
    • bake

      public net.minecraft.client.renderer.block.model.BakedQuad bake()
      Bakes this Quad to a BakedQuad.
      返回:
      The BakedQuad.