Record Class FireworkExplosionComponent

java.lang.Object
java.lang.Record
net.minecraft.component.type.FireworkExplosionComponent
Record Components:
shape -
colors -
fadeColors -
hasTrail -
hasTwinkle -
All Implemented Interfaces:
TooltipAppender

public record FireworkExplosionComponent(FireworkExplosionComponent.Type shape, IntList colors, IntList fadeColors, boolean hasTrail, boolean hasTwinkle) extends Record implements TooltipAppender
Mappings:
Namespace Name
named net/minecraft/component/type/FireworkExplosionComponent
intermediary net/minecraft/class_9283
official cxl
named shape
intermediary comp_2386
official e
named colors
intermediary comp_2387
official f
named fadeColors
intermediary comp_2388
official g
named hasTrail
intermediary comp_2389
official h
named hasTwinkle
intermediary comp_2390
official i
  • Field Details

    • shape

      private final FireworkExplosionComponent.Type shape
      The field for the shape record component.
    • colors

      private final IntList colors
      The field for the colors record component.
    • fadeColors

      private final IntList fadeColors
      The field for the fadeColors record component.
    • hasTrail

      private final boolean hasTrail
      The field for the hasTrail record component.
    • hasTwinkle

      private final boolean hasTwinkle
      The field for the hasTwinkle record component.
    • DEFAULT

      public static final FireworkExplosionComponent DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/component/type/FireworkExplosionComponent;DEFAULT:Lnet/minecraft/component/type/FireworkExplosionComponent;
      intermediary field_49315 Lnet/minecraft/class_9283;field_49315:Lnet/minecraft/class_9283;
      official a Lcxl;a:Lcxl;
    • COLORS_CODEC

      public static final com.mojang.serialization.Codec<IntList> COLORS_CODEC
      Mappings:
      Namespace Name Mixin selector
      named COLORS_CODEC Lnet/minecraft/component/type/FireworkExplosionComponent;COLORS_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_49318 Lnet/minecraft/class_9283;field_49318:Lcom/mojang/serialization/Codec;
      official b Lcxl;b:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<FireworkExplosionComponent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/type/FireworkExplosionComponent;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_49316 Lnet/minecraft/class_9283;field_49316:Lcom/mojang/serialization/Codec;
      official c Lcxl;c:Lcom/mojang/serialization/Codec;
    • COLORS_PACKET_CODEC

      private static final PacketCodec<ByteBuf,IntList> COLORS_PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named COLORS_PACKET_CODEC Lnet/minecraft/component/type/FireworkExplosionComponent;COLORS_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49319 Lnet/minecraft/class_9283;field_49319:Lnet/minecraft/class_9139;
      official j Lcxl;j:Lyx;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,FireworkExplosionComponent> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/type/FireworkExplosionComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49317 Lnet/minecraft/class_9283;field_49317:Lnet/minecraft/class_9139;
      official d Lcxl;d:Lyx;
    • CUSTOM_COLOR_TEXT

      private static final Text CUSTOM_COLOR_TEXT
      Mappings:
      Namespace Name Mixin selector
      named CUSTOM_COLOR_TEXT Lnet/minecraft/component/type/FireworkExplosionComponent;CUSTOM_COLOR_TEXT:Lnet/minecraft/text/Text;
      intermediary field_49320 Lnet/minecraft/class_9283;field_49320:Lnet/minecraft/class_2561;
      official k Lcxl;k:Lwz;
  • Constructor Details

  • Method Details

    • appendTooltip

      public void appendTooltip(Item.TooltipContext context, Consumer<Text> tooltip, TooltipType type)
      Specified by:
      appendTooltip in interface TooltipAppender
      Mappings:
      Namespace Name Mixin selector
      named appendTooltip Lnet/minecraft/item/tooltip/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/item/tooltip/TooltipType;)V
      intermediary method_57409 Lnet/minecraft/class_9299;method_57409(Lnet/minecraft/class_1792$class_9635;Ljava/util/function/Consumer;Lnet/minecraft/class_1836;)V
      official a Lcxy;a(Lcul$b;Ljava/util/function/Consumer;Lcwm;)V
    • appendShapeTooltip

      public void appendShapeTooltip(Consumer<Text> textConsumer)
      Mappings:
      Namespace Name Mixin selector
      named appendShapeTooltip Lnet/minecraft/component/type/FireworkExplosionComponent;appendShapeTooltip(Ljava/util/function/Consumer;)V
      intermediary method_57475 Lnet/minecraft/class_9283;method_57475(Ljava/util/function/Consumer;)V
      official a Lcxl;a(Ljava/util/function/Consumer;)V
    • appendOptionalTooltip

      public void appendOptionalTooltip(Consumer<Text> textConsumer)
      Mappings:
      Namespace Name Mixin selector
      named appendOptionalTooltip Lnet/minecraft/component/type/FireworkExplosionComponent;appendOptionalTooltip(Ljava/util/function/Consumer;)V
      intermediary method_57477 Lnet/minecraft/class_9283;method_57477(Ljava/util/function/Consumer;)V
      official b Lcxl;b(Ljava/util/function/Consumer;)V
    • appendColorsTooltipText

      private static Text appendColorsTooltipText(MutableText text, IntList colors)
      Mappings:
      Namespace Name Mixin selector
      named appendColorsTooltipText Lnet/minecraft/component/type/FireworkExplosionComponent;appendColorsTooltipText(Lnet/minecraft/text/MutableText;Lit/unimi/dsi/fastutil/ints/IntList;)Lnet/minecraft/text/Text;
      intermediary method_57476 Lnet/minecraft/class_9283;method_57476(Lnet/minecraft/class_5250;Lit/unimi/dsi/fastutil/ints/IntList;)Lnet/minecraft/class_2561;
      official a Lcxl;a(Lxn;Lit/unimi/dsi/fastutil/ints/IntList;)Lwz;
    • getColorText

      private static Text getColorText(int color)
      Mappings:
      Namespace Name Mixin selector
      named getColorText Lnet/minecraft/component/type/FireworkExplosionComponent;getColorText(I)Lnet/minecraft/text/Text;
      intermediary method_57472 Lnet/minecraft/class_9283;method_57472(I)Lnet/minecraft/class_2561;
      official a Lcxl;a(I)Lwz;
    • withFadeColors

      public FireworkExplosionComponent withFadeColors(IntList fadeColors)
      Mappings:
      Namespace Name Mixin selector
      named withFadeColors Lnet/minecraft/component/type/FireworkExplosionComponent;withFadeColors(Lit/unimi/dsi/fastutil/ints/IntList;)Lnet/minecraft/component/type/FireworkExplosionComponent;
      intermediary method_57474 Lnet/minecraft/class_9283;method_57474(Lit/unimi/dsi/fastutil/ints/IntList;)Lnet/minecraft/class_9283;
      official a Lcxl;a(Lit/unimi/dsi/fastutil/ints/IntList;)Lcxl;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • shape

      Returns the value of the shape record component.
      Returns:
      the value of the shape record component
    • colors

      public IntList colors()
      Returns the value of the colors record component.
      Returns:
      the value of the colors record component
    • fadeColors

      public IntList fadeColors()
      Returns the value of the fadeColors record component.
      Returns:
      the value of the fadeColors record component
    • hasTrail

      public boolean hasTrail()
      Returns the value of the hasTrail record component.
      Returns:
      the value of the hasTrail record component
    • hasTwinkle

      public boolean hasTwinkle()
      Returns the value of the hasTwinkle record component.
      Returns:
      the value of the hasTwinkle record component