public static enum EntityAnchorArgument.Type extends java.lang.Enum<EntityAnchorArgument.Type>
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,EntityAnchorArgument.Type> |
BY_NAME |
private java.lang.String |
name |
private java.util.function.BiFunction<Vec3d,Entity,Vec3d> |
offsetFunc |
Modifier and Type | Method and Description |
---|---|
Vec3d |
apply(CommandSource sourceIn) |
Vec3d |
apply(Entity entityIn) |
static EntityAnchorArgument.Type |
getByName(java.lang.String nameIn) |
static EntityAnchorArgument.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntityAnchorArgument.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityAnchorArgument.Type FEET
public static final EntityAnchorArgument.Type EYES
private static final java.util.Map<java.lang.String,EntityAnchorArgument.Type> BY_NAME
private final java.lang.String name
public static EntityAnchorArgument.Type[] values()
for (EntityAnchorArgument.Type c : EntityAnchorArgument.Type.values()) System.out.println(c);
public static EntityAnchorArgument.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Nullable public static EntityAnchorArgument.Type getByName(java.lang.String nameIn)
public Vec3d apply(CommandSource sourceIn)