| Modifier and Type | Method and Description |
|---|---|
Location |
Entity.getLocation() |
| Modifier and Type | Method and Description |
|---|---|
T |
EntityFactory.create(EntityType<T> type,
Location location) |
default boolean |
Entity.teleport(Location location) |
boolean |
Entity.teleport(Location location,
PlayerTeleportEvent.TeleportCause cause) |
| Modifier and Type | Method and Description |
|---|---|
Location |
BaseEntity.getLocation() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
BaseEntity.init(Location location) |
boolean |
BaseEntity.teleport(Location location) |
boolean |
BaseEntity.teleport(Location location,
PlayerTeleportEvent.TeleportCause cause) |
| Constructor and Description |
|---|
BaseEntity(EntityType<?> type,
Location location) |
EntityCreature(EntityType<?> type,
Location location) |
EntityLiving(EntityType<?> type,
Location location) |
HangingEntity(EntityType<?> type,
Location location) |
Human(EntityType<Human> type,
Location location) |
UnknownEntity(EntityType<?> type,
Location location) |
| Constructor and Description |
|---|
EntityAreaEffectCloud(EntityType<?> type,
Location location) |
EntityArmorStand(EntityType<?> type,
Location location) |
EntityDroppedItem(EntityType<DroppedItem> type,
Location location) |
EntityEnderCrystal(EntityType<EnderCrystal> type,
Location location) |
EntityEvocationFang(EntityType<?> type,
Location location) |
EntityExperienceOrb(EntityType<ExperienceOrb> type,
Location location) |
EntityFallingBlock(EntityType<FallingBlock> type,
Location location) |
EntityFireworksRocket(EntityType<FireworksRocket> type,
Location location) |
EntityLeashKnot(EntityType<?> type,
Location location) |
EntityLightningBolt(EntityType<LightningBolt> type,
Location location) |
EntityPainting(EntityType<Painting> type,
Location location) |
EntityPrimedTnt(EntityType<PrimedTnt> type,
Location location) |
| Constructor and Description |
|---|
EntityAbstractMinecart(EntityType<?> type,
Location location) |
EntityBoat(EntityType<Boat> type,
Location location) |
EntityChestMinecart(EntityType<ChestMinecart> type,
Location location) |
EntityCommandBlockMinecart(EntityType<CommandBlockMinecart> type,
Location location) |
EntityHopperMinecart(EntityType<HopperMinecart> type,
Location location) |
EntityMinecart(EntityType<Minecart> type,
Location location) |
EntityTntMinecart(EntityType<TntMinecart> type,
Location location) |
EntityVehicle(EntityType<?> type,
Location location) |
| Modifier and Type | Method and Description |
|---|---|
Location |
EntityTeleportEvent.getFrom() |
Location |
EntitySpawnEvent.getLocation() |
Location |
EntityDespawnEvent.getLocation() |
Location |
CreatureSpawnEvent.getLocation() |
Location |
EntityTeleportEvent.getTo() |
| Modifier and Type | Method and Description |
|---|---|
void |
EntityTeleportEvent.setFrom(Location from) |
void |
EntityTeleportEvent.setTo(Location to) |
| Constructor and Description |
|---|
CreatureSpawnEvent(EntityType<?> type,
Location location,
CreatureSpawnEvent.SpawnReason reason) |
EntityTeleportEvent(Entity entity,
Location from,
Location to) |
| Modifier and Type | Method and Description |
|---|---|
Location |
PlayerMoveEvent.getFrom() |
Location |
PlayerTeleportEvent.getFrom() |
Location |
PlayerRespawnEvent.getRespawnLocation() |
Location |
PlayerMoveEvent.getTo() |
Location |
PlayerTeleportEvent.getTo() |
| Modifier and Type | Method and Description |
|---|---|
void |
PlayerMoveEvent.setFrom(Location from) |
void |
PlayerRespawnEvent.setRespawnLocation(Location location) |
void |
PlayerMoveEvent.setTo(Location to) |
| Constructor and Description |
|---|
PlayerMoveEvent(Player player,
Location from,
Location to) |
PlayerMoveEvent(Player player,
Location from,
Location to,
boolean resetBlocks) |
PlayerRespawnEvent(Player player,
Location location) |
PlayerRespawnEvent(Player player,
Location location,
boolean firstSpawn) |
PlayerTeleportEvent(Player player,
Location from,
Location to,
PlayerTeleportEvent.TeleportCause cause) |
| Modifier and Type | Method and Description |
|---|---|
Location |
VehicleMoveEvent.getFrom() |
Location |
VehicleMoveEvent.getTo() |
| Constructor and Description |
|---|
VehicleMoveEvent(Entity vehicle,
Location from,
Location to) |
| Modifier and Type | Method and Description |
|---|---|
Location |
Location.add(double x,
double y,
double z) |
Location |
Location.add(float x,
float y,
float z) |
static Location |
Location.from(float x,
float y,
float z,
float yaw,
float pitch,
Level level) |
static Location |
Location.from(float x,
float y,
float z,
Level level) |
static Location |
Location.from(Level level) |
static Location |
Location.from(com.nukkitx.math.vector.Vector3f position,
float yaw,
float pitch,
Level level) |
static Location |
Location.from(com.nukkitx.math.vector.Vector3f position,
Level level) |
static Location |
Location.from(com.nukkitx.math.vector.Vector3i position,
Level level) |
Location |
Level.getSafeSpawn() |
Location |
Level.getSafeSpawn(Location spawn) |
Location |
Level.getSpawnLocation() |
static Location |
EnumLevel.moveToNether(Location current) |
| Modifier and Type | Method and Description |
|---|---|
Location |
Level.getSafeSpawn(Location spawn) |
static Location |
EnumLevel.moveToNether(Location current) |
| Modifier and Type | Field and Description |
|---|---|
protected Location |
Player.spawnLocation |
| Modifier and Type | Method and Description |
|---|---|
Location |
Player.getSpawn() |
| Modifier and Type | Method and Description |
|---|---|
void |
Player.setSpawn(Location location) |
boolean |
Player.teleport(Location location,
PlayerTeleportEvent.TeleportCause cause) |
void |
Player.teleportImmediate(Location location) |
void |
Player.teleportImmediate(Location location,
PlayerTeleportEvent.TeleportCause cause) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Entity> |
EntityRegistry.newEntity(EntityType<T> type,
Location location)
Creates new entity of given type
|
<T extends Entity> |
EntityRegistry.newEntity(EntityType<T> type,
PluginContainer plugin,
Location location)
Creates new entity of given type from specific plugin factory
|
Copyright © 2020. All rights reserved.