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$PositionSourceTypeintermediary net/minecraft/class_9734$class_9736official dfc$b
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interfaceNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SpawnParticlesEnchantmentEffect.PositionSourceType> private final StringFields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePositionSourceType(String id, SpawnParticlesEnchantmentEffect.PositionSourceType.CoordinateSource coordinateSource) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.doublegetCoordinate(double entityPosition, double boundingBoxCenter, float boundingBoxSize, Random random) Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENTITY_POSITION
- Mappings:
Namespace Name Mixin selector named ENTITY_POSITIONLnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;ENTITY_POSITION:Lnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;intermediary field_51723Lnet/minecraft/class_9734$class_9736;field_51723:Lnet/minecraft/class_9734$class_9736;official aLdfc$b;a:Ldfc$b;
-
BOUNDING_BOX
- Mappings:
Namespace Name Mixin selector named BOUNDING_BOXLnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;BOUNDING_BOX:Lnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;intermediary field_51724Lnet/minecraft/class_9734$class_9736;field_51724:Lnet/minecraft/class_9734$class_9736;official bLdfc$b;b:Ldfc$b;
-
-
Field Details
-
CODEC
public static final com.mojang.serialization.Codec<SpawnParticlesEnchantmentEffect.PositionSourceType> CODEC- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;CODEC:Lcom/mojang/serialization/Codec;intermediary field_51725Lnet/minecraft/class_9734$class_9736;field_51725:Lcom/mojang/serialization/Codec;official cLdfc$b;c:Lcom/mojang/serialization/Codec;
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;id:Ljava/lang/String;intermediary field_51726Lnet/minecraft/class_9734$class_9736;field_51726:Ljava/lang/String;official dLdfc$b;d:Ljava/lang/String;
-
coordinateSource
- Mappings:
Namespace Name Mixin selector named coordinateSourceLnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;coordinateSource:Lnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType$CoordinateSource;intermediary field_51727Lnet/minecraft/class_9734$class_9736;field_51727:Lnet/minecraft/class_9734$class_9736$class_9737;official eLdfc$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;)Vintermediary <init>Lnet/minecraft/class_9734$class_9736;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_9734$class_9736$class_9737;)Vofficial <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 nameNullPointerException- if the argument is null
-
getCoordinate
public double getCoordinate(double entityPosition, double boundingBoxCenter, float boundingBoxSize, Random random) - Mappings:
Namespace Name Mixin selector named getCoordinateLnet/minecraft/enchantment/effect/entity/SpawnParticlesEnchantmentEffect$PositionSourceType;getCoordinate(DDFLnet/minecraft/util/math/random/Random;)Dintermediary method_60259Lnet/minecraft/class_9734$class_9736;method_60259(DDFLnet/minecraft/class_5819;)Dofficial aLdfc$b;a(DDFLbam;)D
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbba;c()Ljava/lang/String;
-