Enum Class FireworkExplosionComponent.Type

java.lang.Object
java.lang.Enum<FireworkExplosionComponent.Type>
net.minecraft.component.type.FireworkExplosionComponent.Type
All Implemented Interfaces:
Serializable, Comparable<FireworkExplosionComponent.Type>, Constable, StringIdentifiable
Enclosing class:
FireworkExplosionComponent

public static enum FireworkExplosionComponent.Type extends Enum<FireworkExplosionComponent.Type> implements StringIdentifiable
Mappings:
Namespace Name
official cxj$a
intermediary net/minecraft/class_9283$class_1782
named net/minecraft/component/type/FireworkExplosionComponent$Type
  • Enum Constant Details

    • SMALL_BALL

      public static final FireworkExplosionComponent.Type SMALL_BALL
      Mappings:
      Namespace Name Mixin selector
      official a Lcxj$a;a:Lcxj$a;
      intermediary field_7976 Lnet/minecraft/class_9283$class_1782;field_7976:Lnet/minecraft/class_9283$class_1782;
      named SMALL_BALL Lnet/minecraft/component/type/FireworkExplosionComponent$Type;SMALL_BALL:Lnet/minecraft/component/type/FireworkExplosionComponent$Type;
    • LARGE_BALL

      public static final FireworkExplosionComponent.Type LARGE_BALL
      Mappings:
      Namespace Name Mixin selector
      official b Lcxj$a;b:Lcxj$a;
      intermediary field_7977 Lnet/minecraft/class_9283$class_1782;field_7977:Lnet/minecraft/class_9283$class_1782;
      named LARGE_BALL Lnet/minecraft/component/type/FireworkExplosionComponent$Type;LARGE_BALL:Lnet/minecraft/component/type/FireworkExplosionComponent$Type;
    • STAR

      public static final FireworkExplosionComponent.Type STAR
      Mappings:
      Namespace Name Mixin selector
      official c Lcxj$a;c:Lcxj$a;
      intermediary field_7973 Lnet/minecraft/class_9283$class_1782;field_7973:Lnet/minecraft/class_9283$class_1782;
      named STAR Lnet/minecraft/component/type/FireworkExplosionComponent$Type;STAR:Lnet/minecraft/component/type/FireworkExplosionComponent$Type;
    • CREEPER

      public static final FireworkExplosionComponent.Type CREEPER
      Mappings:
      Namespace Name Mixin selector
      official d Lcxj$a;d:Lcxj$a;
      intermediary field_7974 Lnet/minecraft/class_9283$class_1782;field_7974:Lnet/minecraft/class_9283$class_1782;
      named CREEPER Lnet/minecraft/component/type/FireworkExplosionComponent$Type;CREEPER:Lnet/minecraft/component/type/FireworkExplosionComponent$Type;
    • BURST

      public static final FireworkExplosionComponent.Type BURST
      Mappings:
      Namespace Name Mixin selector
      official e Lcxj$a;e:Lcxj$a;
      intermediary field_7970 Lnet/minecraft/class_9283$class_1782;field_7970:Lnet/minecraft/class_9283$class_1782;
      named BURST Lnet/minecraft/component/type/FireworkExplosionComponent$Type;BURST:Lnet/minecraft/component/type/FireworkExplosionComponent$Type;
  • Field Details

    • BY_ID

      private static final IntFunction<FireworkExplosionComponent.Type> BY_ID
      Mappings:
      Namespace Name Mixin selector
      official h Lcxj$a;h:Ljava/util/function/IntFunction;
      intermediary field_7975 Lnet/minecraft/class_9283$class_1782;field_7975:Ljava/util/function/IntFunction;
      named BY_ID Lnet/minecraft/component/type/FireworkExplosionComponent$Type;BY_ID:Ljava/util/function/IntFunction;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,FireworkExplosionComponent.Type> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      official f Lcxj$a;f:Lzc;
      intermediary field_49321 Lnet/minecraft/class_9283$class_1782;field_49321:Lnet/minecraft/class_9139;
      named PACKET_CODEC Lnet/minecraft/component/type/FireworkExplosionComponent$Type;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
    • CODEC

      public static final com.mojang.serialization.Codec<FireworkExplosionComponent.Type> CODEC
      Mappings:
      Namespace Name Mixin selector
      official g Lcxj$a;g:Lcom/mojang/serialization/Codec;
      intermediary field_49322 Lnet/minecraft/class_9283$class_1782;field_49322:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/component/type/FireworkExplosionComponent$Type;CODEC:Lcom/mojang/serialization/Codec;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      official i Lcxj$a;i:I
      intermediary field_7972 Lnet/minecraft/class_9283$class_1782;field_7972:I
      named id Lnet/minecraft/component/type/FireworkExplosionComponent$Type;id:I
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official j Lcxj$a;j:Ljava/lang/String;
      intermediary field_7971 Lnet/minecraft/class_9283$class_1782;field_7971:Ljava/lang/String;
      named name Lnet/minecraft/component/type/FireworkExplosionComponent$Type;name:Ljava/lang/String;
  • Constructor Details

    • Type

      private Type(int id, String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcxj$a;<init>(Ljava/lang/String;IILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_9283$class_1782;<init>(Ljava/lang/String;IILjava/lang/String;)V
      named <init> Lnet/minecraft/component/type/FireworkExplosionComponent$Type;<init>(Ljava/lang/String;IILjava/lang/String;)V
  • Method Details

    • values

      public static FireworkExplosionComponent.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FireworkExplosionComponent.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public MutableText getName()
      Mappings:
      Namespace Name Mixin selector
      official a Lcxj$a;a()Lxs;
      intermediary method_7812 Lnet/minecraft/class_9283$class_1782;method_7812()Lnet/minecraft/class_5250;
      named getName Lnet/minecraft/component/type/FireworkExplosionComponent$Type;getName()Lnet/minecraft/text/MutableText;
    • getId

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      official b Lcxj$a;b()I
      intermediary method_7816 Lnet/minecraft/class_9283$class_1782;method_7816()I
      named getId Lnet/minecraft/component/type/FireworkExplosionComponent$Type;getId()I
    • byId

      public static FireworkExplosionComponent.Type byId(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Lcxj$a;a(I)Lcxj$a;
      intermediary method_7813 Lnet/minecraft/class_9283$class_1782;method_7813(I)Lnet/minecraft/class_9283$class_1782;
      named byId Lnet/minecraft/component/type/FireworkExplosionComponent$Type;byId(I)Lnet/minecraft/component/type/FireworkExplosionComponent$Type;
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      official c Lazg;c()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;