public static enum EntityAnchorArgumentType.EntityAnchor extends Enum<EntityAnchorArgumentType.EntityAnchor>
Modifier and Type | Field and Description |
---|---|
private static Map<String,EntityAnchorArgumentType.EntityAnchor> |
anchors |
private String |
id |
private BiFunction<Vec3d,Entity,Vec3d> |
offset |
Modifier and Type | Method and Description |
---|---|
static EntityAnchorArgumentType.EntityAnchor |
fromId(String id) |
Vec3d |
positionAt(Entity entity) |
Vec3d |
positionAt(ServerCommandSource serverCommandSource) |
static EntityAnchorArgumentType.EntityAnchor |
valueOf(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.
|
public static final EntityAnchorArgumentType.EntityAnchor FEET
public static final EntityAnchorArgumentType.EntityAnchor EYES
private static final Map<String,EntityAnchorArgumentType.EntityAnchor> anchors
private final String id
private final BiFunction<Vec3d,Entity,Vec3d> offset
public static EntityAnchorArgumentType.EntityAnchor[] values()
for (EntityAnchorArgumentType.EntityAnchor c : EntityAnchorArgumentType.EntityAnchor.values()) System.out.println(c);
public static EntityAnchorArgumentType.EntityAnchor valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Nullable public static EntityAnchorArgumentType.EntityAnchor fromId(String id)
public Vec3d positionAt(ServerCommandSource serverCommandSource)