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 eec
intermediary net/minecraft/class_4585
named net/minecraft/client/render/FixedColorVertexConsumer
  • Field Details

    • colorFixed

      protected boolean colorFixed
      Mappings:
      Namespace Name Mixin selector
      official a Leec;a:Z
      intermediary field_20889 Lnet/minecraft/class_4585;field_20889:Z
      named colorFixed Lnet/minecraft/client/render/FixedColorVertexConsumer;colorFixed:Z
    • fixedRed

      protected int fixedRed
      Mappings:
      Namespace Name Mixin selector
      official b Leec;b:I
      intermediary field_20890 Lnet/minecraft/class_4585;field_20890:I
      named fixedRed Lnet/minecraft/client/render/FixedColorVertexConsumer;fixedRed:I
    • fixedGreen

      protected int fixedGreen
      Mappings:
      Namespace Name Mixin selector
      official c Leec;c:I
      intermediary field_20891 Lnet/minecraft/class_4585;field_20891:I
      named fixedGreen Lnet/minecraft/client/render/FixedColorVertexConsumer;fixedGreen:I
    • fixedBlue

      protected int fixedBlue
      Mappings:
      Namespace Name Mixin selector
      official d Leec;d:I
      intermediary field_20892 Lnet/minecraft/class_4585;field_20892:I
      named fixedBlue Lnet/minecraft/client/render/FixedColorVertexConsumer;fixedBlue:I
    • fixedAlpha

      protected int fixedAlpha
      Mappings:
      Namespace Name Mixin selector
      official e Leec;e:I
      intermediary field_20893 Lnet/minecraft/class_4585;field_20893:I
      named fixedAlpha Lnet/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 until VertexConsumer.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:
      fixedColor in interface VertexConsumer
      Mappings:
      Namespace Name Mixin selector
      official b Leeh;b(IIII)V
      intermediary method_22901 Lnet/minecraft/class_4588;method_22901(IIII)V
      named fixedColor Lnet/minecraft/client/render/VertexConsumer;fixedColor(IIII)V
    • unfixColor

      public void unfixColor()
      Makes this consumer no longer use the color set in VertexConsumer.fixedColor(int, int, int, int).
      Specified by:
      unfixColor in interface VertexConsumer
      Mappings:
      Namespace Name Mixin selector
      official k Leeh;k()V
      intermediary method_35666 Lnet/minecraft/class_4588;method_35666()V
      named unfixColor Lnet/minecraft/client/render/VertexConsumer;unfixColor()V