Package net.minecraft.client.render
Class FixedColorVertexConsumer
java.lang.Object
net.minecraft.client.render.FixedColorVertexConsumer
- All Implemented Interfaces:
VertexConsumer
- Direct Known Subclasses:
BufferBuilder,OutlineVertexConsumerProvider.OutlineVertexConsumer,OverlayVertexConsumer
@Environment(CLIENT)
public abstract class FixedColorVertexConsumer
extends Object
implements VertexConsumer
- Mappings:
Namespace Name official eeqintermediary net/minecraft/class_4585named net/minecraft/client/render/FixedColorVertexConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intprotected intprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfixedColor(int red, int green, int blue, int alpha) Makes this consumer always use the same color for subsequent vertices untilVertexConsumer.unfixColor()is called.voidMakes this consumer no longer use the color set inVertexConsumer.fixedColor(int, int, int, int).
-
Field Details
-
colorFixed
protected boolean colorFixed- Mappings:
Namespace Name Mixin selector official aLeeq;a:Zintermediary field_20889Lnet/minecraft/class_4585;field_20889:Znamed colorFixedLnet/minecraft/client/render/FixedColorVertexConsumer;colorFixed:Z
-
fixedRed
protected int fixedRed- Mappings:
Namespace Name Mixin selector official bLeeq;b:Iintermediary field_20890Lnet/minecraft/class_4585;field_20890:Inamed fixedRedLnet/minecraft/client/render/FixedColorVertexConsumer;fixedRed:I
-
fixedGreen
protected int fixedGreen- Mappings:
Namespace Name Mixin selector official cLeeq;c:Iintermediary field_20891Lnet/minecraft/class_4585;field_20891:Inamed fixedGreenLnet/minecraft/client/render/FixedColorVertexConsumer;fixedGreen:I
-
fixedBlue
protected int fixedBlue- Mappings:
Namespace Name Mixin selector official dLeeq;d:Iintermediary field_20892Lnet/minecraft/class_4585;field_20892:Inamed fixedBlueLnet/minecraft/client/render/FixedColorVertexConsumer;fixedBlue:I
-
fixedAlpha
protected int fixedAlpha- Mappings:
Namespace Name Mixin selector official eLeeq;e:Iintermediary field_20893Lnet/minecraft/class_4585;field_20893:Inamed fixedAlphaLnet/minecraft/client/render/FixedColorVertexConsumer;fixedAlpha:I
-
-
Constructor Details
-
FixedColorVertexConsumer
public FixedColorVertexConsumer()
-
-
Method Details
-
fixedColor
public void fixedColor(int red, int green, int blue, int alpha) Makes this consumer always use the same color for subsequent vertices untilVertexConsumer.unfixColor()is called.The color will be automatically supplied when the color element is requested. Make sure not to specify the color yourself when using this method.
- Specified by:
fixedColorin interfaceVertexConsumer- Mappings:
Namespace Name Mixin selector official bLeev;b(IIII)Vintermediary method_22901Lnet/minecraft/class_4588;method_22901(IIII)Vnamed fixedColorLnet/minecraft/client/render/VertexConsumer;fixedColor(IIII)V
-
unfixColor
public void unfixColor()Makes this consumer no longer use the color set inVertexConsumer.fixedColor(int, int, int, int).- Specified by:
unfixColorin interfaceVertexConsumer- Mappings:
Namespace Name Mixin selector official kLeev;k()Vintermediary method_35666Lnet/minecraft/class_4588;method_35666()Vnamed unfixColorLnet/minecraft/client/render/VertexConsumer;unfixColor()V
-