Package net.minecraft.component.type
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 cxk
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
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<FireworkExplosionComponent> private final IntList
The field for thecolors
record component.static final com.mojang.serialization.Codec
<IntList> private static final PacketCodec
<ByteBuf, IntList> private static final Text
static final FireworkExplosionComponent
private final IntList
The field for thefadeColors
record component.private final boolean
The field for thehasTrail
record component.private final boolean
The field for thehasTwinkle
record component.static final PacketCodec
<ByteBuf, FireworkExplosionComponent> private final FireworkExplosionComponent.Type
The field for theshape
record component. -
Constructor Summary
ConstructorDescriptionFireworkExplosionComponent
(FireworkExplosionComponent.Type type, IntList intList, IntList intList2, boolean bool, boolean bool2) -
Method Summary
Modifier and TypeMethodDescriptionprivate static Text
appendColorsTooltipText
(MutableText text, IntList colors) void
appendOptionalTooltip
(Consumer<Text> textConsumer) void
appendShapeTooltip
(Consumer<Text> textConsumer) void
appendTooltip
(Item.TooltipContext context, Consumer<Text> tooltip, TooltipType type) colors()
Returns the value of thecolors
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefadeColors
record component.private static Text
getColorText
(int color) final int
hashCode()
Returns a hash code value for this object.boolean
hasTrail()
Returns the value of thehasTrail
record component.boolean
Returns the value of thehasTwinkle
record component.shape()
Returns the value of theshape
record component.final String
toString()
Returns a string representation of this record class.withFadeColors
(IntList fadeColors)
-
Field Details
-
shape
The field for theshape
record component. -
colors
The field for thecolors
record component. -
fadeColors
The field for thefadeColors
record component. -
hasTrail
private final boolean hasTrailThe field for thehasTrail
record component. -
hasTwinkle
private final boolean hasTwinkleThe field for thehasTwinkle
record component. -
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
Lcxk;a:Lcxk;
-
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
Lcxk;b:Lcom/mojang/serialization/Codec;
-
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
Lcxk;c:Lcom/mojang/serialization/Codec;
-
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
Lcxk;j:Lzn;
-
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
Lcxk;d:Lzn;
-
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
Lcxk;k:Lxp;
-
-
Constructor Details
-
FireworkExplosionComponent
public FireworkExplosionComponent(FireworkExplosionComponent.Type type, IntList intList, IntList intList2, boolean bool, boolean bool2)
-
-
Method Details
-
appendTooltip
- Specified by:
appendTooltip
in interfaceTooltipAppender
- Mappings:
Namespace Name Mixin selector named appendTooltip
Lnet/minecraft/item/TooltipAppender;appendTooltip(Lnet/minecraft/item/Item$TooltipContext;Ljava/util/function/Consumer;Lnet/minecraft/client/item/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
Lcxx;a(Lcum$b;Ljava/util/function/Consumer;Lcwk;)V
-
appendShapeTooltip
- 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
Lcxk;a(Ljava/util/function/Consumer;)V
-
appendOptionalTooltip
- 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
Lcxk;b(Ljava/util/function/Consumer;)V
-
appendColorsTooltipText
- 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
Lcxk;a(Lyd;Lit/unimi/dsi/fastutil/ints/IntList;)Lxp;
-
getColorText
- 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
Lcxk;a(I)Lxp;
-
withFadeColors
- 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
Lcxk;a(Lit/unimi/dsi/fastutil/ints/IntList;)Lcxk;
-
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 '=='. -
shape
Returns the value of theshape
record component.- Returns:
- the value of the
shape
record component
-
colors
Returns the value of thecolors
record component.- Returns:
- the value of the
colors
record component
-
fadeColors
Returns the value of thefadeColors
record component.- Returns:
- the value of the
fadeColors
record component
-
hasTrail
public boolean hasTrail()Returns the value of thehasTrail
record component.- Returns:
- the value of the
hasTrail
record component
-
hasTwinkle
public boolean hasTwinkle()Returns the value of thehasTwinkle
record component.- Returns:
- the value of the
hasTwinkle
record component
-