Record Class RenderHelper.GhostVertexConsumer

java.lang.Object
java.lang.Record
vazkii.botania.client.core.helper.RenderHelper.GhostVertexConsumer
All Implemented Interfaces:
com.mojang.blaze3d.vertex.VertexConsumer
Enclosing class:
RenderHelper

public static record RenderHelper.GhostVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer wrapped, int alpha) extends Record implements com.mojang.blaze3d.vertex.VertexConsumer
  • Constructor Summary

    Constructors
    Constructor
    Description
    GhostVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer wrapped, int alpha)
    Creates an instance of a GhostVertexConsumer record class.
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

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

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

    • GhostVertexConsumer

      public GhostVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer wrapped, int alpha)
      Creates an instance of a GhostVertexConsumer record class.
      Parameters:
      wrapped - the value for the wrapped record component
      alpha - the value for the alpha record component
  • Method Details

    • addVertex

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

      @NotNull public @NotNull 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

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

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

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

      @NotNull public @NotNull com.mojang.blaze3d.vertex.VertexConsumer setNormal(float x, float y, float z)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • wrapped

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

      public int alpha()
      Returns the value of the alpha record component.
      Returns:
      the value of the alpha record component