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
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_342958_, float p_343747_, float p_344781_) 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_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 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.minecraftforge.client.extensions.IForgeVertexConsumer
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
-