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
official ctx
intermediary net/minecraft/class_9283
named net/minecraft/component/type/FireworkExplosionComponent
official d
intermediary comp_2386
named shape
official e
intermediary comp_2387
named colors
official f
intermediary comp_2388
named fadeColors
official g
intermediary comp_2389
named hasTrail
official h
intermediary comp_2390
named hasTwinkle
  • 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
      official a Lctx;a:Lctx;
      intermediary field_49315 Lnet/minecraft/class_9283;field_49315:Lnet/minecraft/class_9283;
      named DEFAULT Lnet/minecraft/component/type/FireworkExplosionComponent;DEFAULT:Lnet/minecraft/component/type/FireworkExplosionComponent;
    • COLORS_CODEC

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

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

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

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

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

  • Method Details

    • appendTooltip

      public void appendTooltip(Consumer<Text> textConsumer, TooltipContext context)
      Specified by:
      appendTooltip in interface TooltipAppender
      Mappings:
      Namespace Name Mixin selector
      official a Lcuj;a(Ljava/util/function/Consumer;Lcsz;)V
      intermediary method_57409 Lnet/minecraft/class_9299;method_57409(Ljava/util/function/Consumer;Lnet/minecraft/class_1836;)V
      named appendTooltip Lnet/minecraft/item/TooltipAppender;appendTooltip(Ljava/util/function/Consumer;Lnet/minecraft/client/item/TooltipContext;)V
    • appendShapeTooltip

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

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

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

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

      public FireworkExplosionComponent withFadeColors(IntList fadeColors)
      Mappings:
      Namespace Name Mixin selector
      official a Lctx;a(Lit/unimi/dsi/fastutil/ints/IntList;)Lctx;
      intermediary method_57474 Lnet/minecraft/class_9283;method_57474(Lit/unimi/dsi/fastutil/ints/IntList;)Lnet/minecraft/class_9283;
      named withFadeColors Lnet/minecraft/component/type/FireworkExplosionComponent;withFadeColors(Lit/unimi/dsi/fastutil/ints/IntList;)Lnet/minecraft/component/type/FireworkExplosionComponent;
    • 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