Record Class MovedVertexConsumer

java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.web.local.client.MovedVertexConsumer
All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer, net.neoforged.neoforge.client.extensions.IVertexConsumerExtension

public record MovedVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer parent, com.mojang.blaze3d.vertex.PoseStack.Pose pose) extends Record implements com.mojang.blaze3d.vertex.VertexConsumer
  • Constructor Summary

    Constructors
    Constructor
    Description
    MovedVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer parent, com.mojang.blaze3d.vertex.PoseStack.Pose pose)
    Creates an instance of a MovedVertexConsumer record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.blaze3d.vertex.VertexConsumer
    addVertex(float x, float y, float z)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    com.mojang.blaze3d.vertex.VertexConsumer
    Returns the value of the parent record component.
    com.mojang.blaze3d.vertex.PoseStack.Pose
    Returns the value of the pose record component.
    com.mojang.blaze3d.vertex.VertexConsumer
    setColor(int red, int green, int blue, int alpha)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setNormal(float normalX, float normalY, float normalZ)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setUv(float u, float v)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setUv1(int u, int v)
     
    com.mojang.blaze3d.vertex.VertexConsumer
    setUv2(int u, int v)
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.neoforged.neoforge.client.extensions.IVertexConsumerExtension

    applyBakedLighting, applyBakedNormals, misc, putBulkData

    Methods inherited from interface com.mojang.blaze3d.vertex.VertexConsumer

    addVertex, addVertex, addVertex, addVertex, addVertex, putBulkData, putBulkData, setColor, setColor, setLight, setNormal, setOverlay, setWhiteAlpha
  • Constructor Details

    • MovedVertexConsumer

      public MovedVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer parent, com.mojang.blaze3d.vertex.PoseStack.Pose pose)
      Creates an instance of a MovedVertexConsumer record class.
      Parameters:
      parent - the value for the parent record component
      pose - the value for the pose record component
  • Method Details

    • addVertex

      public com.mojang.blaze3d.vertex.VertexConsumer addVertex(float x, float y, float z)
      Specified by:
      addVertex in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setColor

      public com.mojang.blaze3d.vertex.VertexConsumer setColor(int red, int green, int blue, int alpha)
      Specified by:
      setColor in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setUv

      public com.mojang.blaze3d.vertex.VertexConsumer setUv(float u, float v)
      Specified by:
      setUv in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setUv1

      public com.mojang.blaze3d.vertex.VertexConsumer setUv1(int u, int v)
      Specified by:
      setUv1 in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setUv2

      public com.mojang.blaze3d.vertex.VertexConsumer setUv2(int u, int v)
      Specified by:
      setUv2 in interface com.mojang.blaze3d.vertex.VertexConsumer
    • setNormal

      public com.mojang.blaze3d.vertex.VertexConsumer setNormal(float normalX, float normalY, float normalZ)
      Specified by:
      setNormal in interface com.mojang.blaze3d.vertex.VertexConsumer
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • parent

      public com.mojang.blaze3d.vertex.VertexConsumer parent()
      Returns the value of the parent record component.
      Returns:
      the value of the parent record component
    • pose

      public com.mojang.blaze3d.vertex.PoseStack.Pose pose()
      Returns the value of the pose record component.
      Returns:
      the value of the pose record component