Enum Class SpawnParticlesEnchantmentEffect.PositionSourceType

java.lang.Object
java.lang.Enum<SpawnParticlesEnchantmentEffect.PositionSourceType>
net.minecraft.enchantment.effect.entity.SpawnParticlesEnchantmentEffect.PositionSourceType
All Implemented Interfaces:
Serializable, Comparable<SpawnParticlesEnchantmentEffect.PositionSourceType>, Constable, StringIdentifiable
Enclosing class:
SpawnParticlesEnchantmentEffect

public static enum SpawnParticlesEnchantmentEffect.PositionSourceType extends Enum<SpawnParticlesEnchantmentEffect.PositionSourceType> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType
intermediary net/minecraft/class_9734$class_9736
official dfc$b
  • Enum Constant Details

    • ENTITY_POSITION

      public static final SpawnParticlesEnchantmentEffect.PositionSourceType ENTITY_POSITION
      Mappings:
      Namespace Name Mixin selector
      named ENTITY_POSITION Lnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;ENTITY_POSITION:Lnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;
      intermediary field_51723 Lnet/minecraft/class_9734$class_9736;field_51723:Lnet/minecraft/class_9734$class_9736;
      official a Ldfc$b;a:Ldfc$b;
    • BOUNDING_BOX

      public static final SpawnParticlesEnchantmentEffect.PositionSourceType BOUNDING_BOX
      Mappings:
      Namespace Name Mixin selector
      named BOUNDING_BOX Lnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;BOUNDING_BOX:Lnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;
      intermediary field_51724 Lnet/minecraft/class_9734$class_9736;field_51724:Lnet/minecraft/class_9734$class_9736;
      official b Ldfc$b;b:Ldfc$b;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<SpawnParticlesEnchantmentEffect.PositionSourceType> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_51725 Lnet/minecraft/class_9734$class_9736;field_51725:Lcom/mojang/serialization/Codec;
      official c Ldfc$b;c:Lcom/mojang/serialization/Codec;
    • id

      private final String id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;id:Ljava/lang/String;
      intermediary field_51726 Lnet/minecraft/class_9734$class_9736;field_51726:Ljava/lang/String;
      official d Ldfc$b;d:Ljava/lang/String;
    • coordinateSource

      Mappings:
      Namespace Name Mixin selector
      named coordinateSource Lnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;coordinateSource:Lnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType$CoordinateSource;
      intermediary field_51727 Lnet/minecraft/class_9734$class_9736;field_51727:Lnet/minecraft/class_9734$class_9736$class_9737;
      official e Ldfc$b;e:Ldfc$b$a;
  • Constructor Details

    • PositionSourceType

      private PositionSourceType(String id, SpawnParticlesEnchantmentEffect.PositionSourceType.CoordinateSource coordinateSource)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType$CoordinateSource;)V
      intermediary <init> Lnet/minecraft/class_9734$class_9736;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_9734$class_9736$class_9737;)V
      official <init> Ldfc$b;<init>(Ljava/lang/String;ILjava/lang/String;Ldfc$b$a;)V
  • Method Details

    • 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

      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
    • getCoordinate

      public double getCoordinate(double entityPosition, double boundingBoxCenter, float boundingBoxSize, Random random)
      Mappings:
      Namespace Name Mixin selector
      named getCoordinate Lnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;getCoordinate(DDFLnet/minecraft/util/math/random/Random;)D
      intermediary method_60259 Lnet/minecraft/class_9734$class_9736;method_60259(DDFLnet/minecraft/class_5819;)D
      official a Ldfc$b;a(DDFLbam;)D
    • 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
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lbba;c()Ljava/lang/String;