Package net.minecraft.client.renderer
Record Class OutlineBufferSource.EntityOutlineGenerator
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.OutlineBufferSource.EntityOutlineGenerator
- All Implemented Interfaces:
VertexConsumer,IVertexConsumerExtension
- Enclosing class:
OutlineBufferSource
static record OutlineBufferSource.EntityOutlineGenerator(VertexConsumer delegate, int color)
extends Record
implements VertexConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecolorrecord component.private final VertexConsumerThe field for thedelegaterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionEntityOutlineGenerator(VertexConsumer delegate, int color) Creates an instance of aEntityOutlineGeneratorrecord class.EntityOutlineGenerator(VertexConsumer p_109943_, int p_109944_, int p_109945_, int p_109946_, int p_109947_) -
Method Summary
Modifier and TypeMethodDescriptionaddVertex(float p_350357_, float p_350369_, float p_350557_) intcolor()Returns the value of thecolorrecord component.delegate()Returns the value of thedelegaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.setColor(int p_350802_, int p_351011_, int p_350273_, int p_351040_) setNormal(float p_350484_, float p_350765_, float p_350737_) setUv(float p_350507_, float p_350470_) setUv1(int p_350412_, int p_350568_) setUv2(int p_350636_, int p_351006_) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.client.extensions.IVertexConsumerExtension
applyBakedLighting, applyBakedNormals, misc, putBulkDataMethods inherited from interface com.mojang.blaze3d.vertex.VertexConsumer
addVertex, addVertex, addVertex, addVertex, addVertex, putBulkData, putBulkData, setColor, setColor, setLight, setNormal, setOverlay, setWhiteAlpha
-
Field Details
-
delegate
The field for thedelegaterecord component. -
color
private final int colorThe field for thecolorrecord component.
-
-
Constructor Details
-
EntityOutlineGenerator
public EntityOutlineGenerator(VertexConsumer p_109943_, int p_109944_, int p_109945_, int p_109946_, int p_109947_) -
EntityOutlineGenerator
EntityOutlineGenerator(VertexConsumer delegate, int color) Creates an instance of aEntityOutlineGeneratorrecord class.- Parameters:
delegate- the value for thedelegaterecord componentcolor- the value for thecolorrecord component
-
-
Method Details
-
addVertex
- Specified by:
addVertexin interfaceVertexConsumer
-
setColor
- Specified by:
setColorin interfaceVertexConsumer
-
setUv
- Specified by:
setUvin interfaceVertexConsumer
-
setUv1
- Specified by:
setUv1in interfaceVertexConsumer
-
setUv2
- Specified by:
setUv2in interfaceVertexConsumer
-
setNormal
- Specified by:
setNormalin interfaceVertexConsumer
-
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 '=='. -
delegate
Returns the value of thedelegaterecord component.- Returns:
- the value of the
delegaterecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-