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
Modifier and TypeFieldDescriptionprivate final int
The field for thecolor
record component.private final VertexConsumer
The field for thedelegate
record component. -
Constructor Summary
ConstructorDescriptionEntityOutlineGenerator
(VertexConsumer delegate, int color) Creates an instance of aEntityOutlineGenerator
record 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_) int
color()
Returns the value of thecolor
record component.delegate()
Returns the value of thedelegate
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
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 String
toString()
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
-
Field Details
-
delegate
The field for thedelegate
record component. -
color
private final int colorThe field for thecolor
record 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 aEntityOutlineGenerator
record class.- Parameters:
delegate
- the value for thedelegate
record componentcolor
- the value for thecolor
record component
-
-
Method Details
-
addVertex
- Specified by:
addVertex
in interfaceVertexConsumer
-
setColor
- Specified by:
setColor
in interfaceVertexConsumer
-
setUv
- Specified by:
setUv
in interfaceVertexConsumer
-
setUv1
- Specified by:
setUv1
in interfaceVertexConsumer
-
setUv2
- Specified by:
setUv2
in interfaceVertexConsumer
-
setNormal
- Specified by:
setNormal
in 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 thedelegate
record component.- Returns:
- the value of the
delegate
record component
-
color
public int color()Returns the value of thecolor
record component.- Returns:
- the value of the
color
record component
-