public class LocationUtils extends Object
Constructor and Description |
---|
LocationUtils() |
Modifier and Type | Method and Description |
---|---|
static <E extends org.spongepowered.api.entity.Entity> |
createEntityAt(Location location,
org.spongepowered.api.entity.EntityType<E> entityType) |
static boolean |
hasLineOfSight(org.spongepowered.api.entity.living.player.Player player,
Location loc) |
static Location |
toNegativity(org.spongepowered.api.world.server.ServerLocation location) |
static Location |
toNegativity(org.spongepowered.api.world.server.ServerWorld world,
org.spongepowered.math.vector.Vector3d vec) |
static org.spongepowered.api.world.server.ServerLocation |
toSponge(Location location) |
static org.spongepowered.math.vector.Vector3d |
toSpongePosition(Location location) |
public static boolean hasLineOfSight(org.spongepowered.api.entity.living.player.Player player, Location loc)
public static org.spongepowered.math.vector.Vector3d toSpongePosition(Location location)
public static <E extends org.spongepowered.api.entity.Entity> E createEntityAt(Location location, org.spongepowered.api.entity.EntityType<E> entityType)
public static org.spongepowered.api.world.server.ServerLocation toSponge(Location location)
public static Location toNegativity(org.spongepowered.api.world.server.ServerLocation location)
public static Location toNegativity(org.spongepowered.api.world.server.ServerWorld world, org.spongepowered.math.vector.Vector3d vec)