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
,IForgeVertexConsumer
- 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_342958_, float p_343747_, float p_344781_) 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_343483_, int p_343623_, int p_342060_, int p_342967_) setNormal
(float p_343114_, float p_344978_, float p_343069_) setUv
(float p_342182_, float p_342633_) setUv1
(int p_344004_, int p_342637_) setUv2
(int p_343797_, int p_342797_) 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.minecraftforge.client.extensions.IForgeVertexConsumer
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
-