Package net.minecraft.command.argument
Enum EntityAnchorArgumentType.EntityAnchor
java.lang.Object
java.lang.Enum<EntityAnchorArgumentType.EntityAnchor>
net.minecraft.command.argument.EntityAnchorArgumentType.EntityAnchor
- All Implemented Interfaces:
Serializable,Comparable<EntityAnchorArgumentType.EntityAnchor>,java.lang.constant.Constable
- Enclosing class:
- EntityAnchorArgumentType
public static enum EntityAnchorArgumentType.EntityAnchor extends Enum<EntityAnchorArgumentType.EntityAnchor>
- Mappings:
Namespace Name official dp$aintermediary net/minecraft/class_2183$class_2184named net/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateEntityAnchor(String id, BiFunction<Vec3d,Entity,Vec3d> offset) -
Method Summary
Modifier and Type Method Description static @Nullable EntityAnchorArgumentType.EntityAnchorfromId(String id)Vec3dpositionAt(Entity entity)Vec3dpositionAt(ServerCommandSource serverCommandSource)static EntityAnchorArgumentType.EntityAnchorvalueOf(String name)Returns the enum constant of this type with the specified name.static EntityAnchorArgumentType.EntityAnchor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FEET
- Mappings:
Namespace Name Mixin selector official aLdp$a;a:Ldp$a;intermediary field_9853Lnet/minecraft/class_2183$class_2184;field_9853:Lnet/minecraft/class_2183$class_2184;named FEETLnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;FEET:Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;
-
EYES
- Mappings:
Namespace Name Mixin selector official bLdp$a;b:Ldp$a;intermediary field_9851Lnet/minecraft/class_2183$class_2184;field_9851:Lnet/minecraft/class_2183$class_2184;named EYESLnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;EYES:Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;
-
-
Field Details
-
anchors
- Mappings:
Namespace Name Mixin selector official cLdp$a;c:Ljava/util/Map;intermediary field_9852Lnet/minecraft/class_2183$class_2184;field_9852:Ljava/util/Map;named anchorsLnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;anchors:Ljava/util/Map;
-
id
- Mappings:
Namespace Name Mixin selector official dLdp$a;d:Ljava/lang/String;intermediary field_9849Lnet/minecraft/class_2183$class_2184;field_9849:Ljava/lang/String;named idLnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;id:Ljava/lang/String;
-
offset
- Mappings:
Namespace Name Mixin selector official eLdp$a;e:Ljava/util/function/BiFunction;intermediary field_9848Lnet/minecraft/class_2183$class_2184;field_9848:Ljava/util/function/BiFunction;named offsetLnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;offset:Ljava/util/function/BiFunction;
-
-
Constructor Details
-
EntityAnchor
- Mappings:
Namespace Name Mixin selector official <init>Ldp$a;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BiFunction;)Vintermediary <init>Lnet/minecraft/class_2183$class_2184;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BiFunction;)Vnamed <init>Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BiFunction;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
fromId
- Mappings:
Namespace Name Mixin selector official aLdp$a;a(Ljava/lang/String;)Ldp$a;intermediary method_9296Lnet/minecraft/class_2183$class_2184;method_9296(Ljava/lang/String;)Lnet/minecraft/class_2183$class_2184;named fromIdLnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;fromId(Ljava/lang/String;)Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;
-
positionAt
- Mappings:
Namespace Name Mixin selector official aLdp$a;a(Lasl;)Ldly;intermediary method_9302Lnet/minecraft/class_2183$class_2184;method_9302(Lnet/minecraft/class_1297;)Lnet/minecraft/class_243;named positionAtLnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;positionAt(Lnet/minecraft/entity/Entity;)Lnet/minecraft/util/math/Vec3d;
-
positionAt
- Mappings:
Namespace Name Mixin selector official aLdp$a;a(Ldg;)Ldly;intermediary method_9299Lnet/minecraft/class_2183$class_2184;method_9299(Lnet/minecraft/class_2168;)Lnet/minecraft/class_243;named positionAtLnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;positionAt(Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/util/math/Vec3d;
-