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
ConstructorsConstructorDescriptionGhostVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer wrapped, int alpha) Creates an instance of aGhostVertexConsumerrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull com.mojang.blaze3d.vertex.VertexConsumeraddVertex(float x, float y, float z) intalpha()Returns the value of thealpharecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull com.mojang.blaze3d.vertex.VertexConsumersetColor(int red, int green, int blue, int alpha) @NotNull com.mojang.blaze3d.vertex.VertexConsumersetNormal(float x, float y, float z) @NotNull com.mojang.blaze3d.vertex.VertexConsumersetUv(float u, float v) @NotNull com.mojang.blaze3d.vertex.VertexConsumersetUv1(int u, int v) @NotNull com.mojang.blaze3d.vertex.VertexConsumersetUv2(int u, int v) final StringtoString()Returns a string representation of this record class.com.mojang.blaze3d.vertex.VertexConsumerwrapped()Returns the value of thewrappedrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 aGhostVertexConsumerrecord class.- Parameters:
wrapped- the value for thewrappedrecord componentalpha- the value for thealpharecord component
-
-
Method Details
-
addVertex
@NotNull public @NotNull com.mojang.blaze3d.vertex.VertexConsumer addVertex(float x, float y, float z) - Specified by:
addVertexin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setColor
@NotNull public @NotNull com.mojang.blaze3d.vertex.VertexConsumer setColor(int red, int green, int blue, int alpha) - Specified by:
setColorin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setUv
@NotNull public @NotNull com.mojang.blaze3d.vertex.VertexConsumer setUv(float u, float v) - Specified by:
setUvin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setUv1
@NotNull public @NotNull com.mojang.blaze3d.vertex.VertexConsumer setUv1(int u, int v) - Specified by:
setUv1in interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setUv2
@NotNull public @NotNull com.mojang.blaze3d.vertex.VertexConsumer setUv2(int u, int v) - Specified by:
setUv2in interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
setNormal
@NotNull public @NotNull com.mojang.blaze3d.vertex.VertexConsumer setNormal(float x, float y, float z) - Specified by:
setNormalin interfacecom.mojang.blaze3d.vertex.VertexConsumer
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
wrapped
public com.mojang.blaze3d.vertex.VertexConsumer wrapped()Returns the value of thewrappedrecord component.- Returns:
- the value of the
wrappedrecord component
-
alpha
public int alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-