Record Class OutlineBufferSource.EntityOutlineGenerator
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.OutlineBufferSource.EntityOutlineGenerator
- All Implemented Interfaces:
VertexConsumer, IVertexConsumerExtension
- Enclosing class:
OutlineBufferSource
private 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
ConstructorsModifierConstructorDescriptionprivateEntityOutlineGenerator(VertexConsumer delegate, int color) Creates an instance of aEntityOutlineGeneratorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddVertex(float x, float y, float z) 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 color) setColor(int r, int g, int b, int a) setLineWidth(float width) setNormal(float x, float y, float z) setUv(float u, float v) setUv1(int u, int v) setUv2(int u, int v) final StringtoString()Returns a string representation of this record class.Methods inherited from interface IVertexConsumerExtension
applyBakedNormals, misc, putBulkData, putBulkDataMethods inherited from interface VertexConsumer
addVertex, addVertex, addVertex, addVertex, addVertex, addVertexWith2DPose, putBulkData, setColor, setLight, setNormal, setNormal, setOverlay
-
Field Details
-
delegate
The field for thedelegaterecord component. -
color
private final int colorThe field for thecolorrecord component.
-
-
Constructor Details
-
EntityOutlineGenerator
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
-
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
-
setLineWidth
- Specified by:
setLineWidthin interfaceVertexConsumer
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-