public abstract class BaseEntity extends Object implements org.cloudburstmc.api.entity.Entity
| Modifier and Type | Field and Description |
|---|---|
protected float |
absorption |
protected int |
age |
List<org.cloudburstmc.api.block.Block> |
blocksAround |
protected org.cloudburstmc.api.util.AxisAlignedBB |
boundingBox |
CloudChunk |
chunk |
boolean |
closed |
List<org.cloudburstmc.api.block.Block> |
collisionBlockStates |
protected SyncedEntityData |
data |
int |
deadTicks |
protected it.unimi.dsi.fastutil.objects.Reference2ObjectOpenHashMap<org.cloudburstmc.api.potion.EffectType,org.cloudburstmc.api.potion.Effect> |
effects |
protected float |
entityCollisionReduction |
float |
fallDistance |
boolean |
fireProof |
int |
fireTicks |
boolean |
firstMove |
protected Set<CloudPlayer> |
hasSpawned |
protected float |
health |
float |
highestPosition |
boolean |
inBlock |
int |
inPortalTicks |
boolean |
invulnerable |
boolean |
isCollided |
boolean |
isCollidedHorizontally |
boolean |
isCollidedVertically |
protected boolean |
isPlayer |
protected boolean |
isStatic |
boolean |
justCreated |
boolean |
keepMovement |
protected org.cloudburstmc.api.event.entity.EntityDamageEvent |
lastDamageCause |
protected com.nukkitx.math.vector.Vector3f |
lastMotion |
protected float |
lastPitch |
protected com.nukkitx.math.vector.Vector3f |
lastPosition |
int |
lastUpdate |
protected float |
lastYaw |
protected CloudLevel |
level |
int |
maxFireTicks |
protected com.nukkitx.math.vector.Vector3f |
motion |
boolean |
motionChanged |
int |
noDamageTicks |
boolean |
onGround |
protected List<org.cloudburstmc.api.entity.Entity> |
passengers |
protected float |
pitch |
protected float |
pitchDelta |
protected com.nukkitx.math.vector.Vector3f |
position |
boolean |
positionChanged |
float |
scale |
protected CloudServer |
server |
com.nukkitx.nbt.NbtMap |
tag |
int |
ticksLived |
protected Timing |
timing |
protected org.cloudburstmc.api.entity.Entity |
vehicle |
protected float |
yaw |
protected float |
yawDelta |
protected float |
ySize |
| Constructor and Description |
|---|
BaseEntity(org.cloudburstmc.api.entity.EntityType<?> type,
org.cloudburstmc.api.level.Location location) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEffect(org.cloudburstmc.api.potion.Effect effect) |
void |
addMotion(com.nukkitx.math.vector.Vector3f motion) |
void |
addMovement(double x,
double y,
double z,
double yaw,
double pitch,
double headYaw) |
boolean |
attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source) |
boolean |
attack(float damage) |
protected void |
broadcastLinkPacket(org.cloudburstmc.api.entity.Entity vehicle,
com.nukkitx.protocol.bedrock.data.entity.EntityLinkData.Type type) |
boolean |
canBeMovedByCurrents()
Returns whether this entity can be moved by currents in liquids.
|
boolean |
canClimb() |
boolean |
canClimbWalls() |
boolean |
canCollide() |
boolean |
canCollideWith(org.cloudburstmc.api.entity.Entity entity) |
boolean |
canPassThrough() |
boolean |
canTriggerPressurePlate() |
boolean |
canTriggerWalking() |
protected void |
checkBlockCollision() |
protected void |
checkChunks() |
protected void |
checkGroundState(double movX,
double movY,
double movZ,
double dx,
double dy,
double dz) |
protected boolean |
checkObstruction(float x,
float y,
float z) |
protected boolean |
checkObstruction(com.nukkitx.math.vector.Vector3f pos) |
void |
close() |
protected com.nukkitx.protocol.bedrock.BedrockPacket |
createAddEntityPacket() |
void |
despawnFrom(CloudPlayer player) |
void |
despawnFrom(org.cloudburstmc.api.player.Player player) |
void |
despawnFromAll() |
boolean |
dismount(org.cloudburstmc.api.entity.Entity vehicle) |
boolean |
entityBaseTick() |
boolean |
entityBaseTick(int tickDiff) |
void |
extinguish() |
void |
fall(float fallDistance) |
boolean |
fastMove(float dx,
float dy,
float dz) |
float |
getAbsorption() |
short |
getAir() |
protected float |
getBaseOffset() |
List<org.cloudburstmc.api.block.Block> |
getBlocksAround() |
org.cloudburstmc.api.util.AxisAlignedBB |
getBoundingBox() |
org.cloudburstmc.api.util.data.CardinalDirection |
getCardinalDirection() |
CloudChunk |
getChunk() |
List<org.cloudburstmc.api.block.Block> |
getCollisionBlocks() |
SyncedEntityData |
getData() |
org.cloudburstmc.api.util.Direction |
getDirection() |
com.nukkitx.math.vector.Vector2f |
getDirectionPlane() |
com.nukkitx.math.vector.Vector3f |
getDirectionVector() |
float |
getDrag() |
CloudEffect |
getEffect(org.cloudburstmc.api.potion.EffectType type) |
org.cloudburstmc.api.potion.Effect |
getEffect(int effectId)
Deprecated.
|
Map<org.cloudburstmc.api.potion.EffectType,org.cloudburstmc.api.potion.Effect> |
getEffects() |
float |
getEyeHeight() |
int |
getFireTicks() |
float |
getGravity() |
float |
getHealth() |
float |
getHeight() |
float |
getHighestPosition() |
org.cloudburstmc.api.util.Direction |
getHorizontalDirection() |
org.cloudburstmc.api.event.entity.EntityDamageEvent |
getLastDamageCause() |
float |
getLength() |
CloudLevel |
getLevel() |
org.cloudburstmc.api.level.Location |
getLocation() |
int |
getMaxHealth() |
com.nukkitx.math.vector.Vector3f |
getMotion() |
com.nukkitx.math.vector.Vector3f |
getMountedOffset(org.cloudburstmc.api.entity.Entity entity) |
String |
getName() |
String |
getNameTag() |
int |
getNoDamageTicks() |
org.cloudburstmc.api.entity.Entity |
getOwner() |
org.cloudburstmc.api.entity.Entity |
getPassenger() |
List<org.cloudburstmc.api.entity.Entity> |
getPassengers() |
float |
getPitch() |
com.nukkitx.math.vector.Vector3f |
getPosition() |
long |
getRuntimeId() |
float |
getScale() |
String |
getScoreTag() |
com.nukkitx.math.vector.Vector3f |
getSeatPosition() |
CloudServer |
getServer() |
protected float |
getStepHeight() |
com.nukkitx.nbt.NbtMap |
getTag() |
org.cloudburstmc.api.entity.EntityType<?> |
getType() |
long |
getUniqueId() |
org.cloudburstmc.api.entity.Entity |
getVehicle() |
Set<CloudPlayer> |
getViewers() |
float |
getWidth() |
float |
getX() |
float |
getY() |
float |
getYaw() |
float |
getZ() |
void |
handleLavaMovement() |
boolean |
hasControllingPassenger() |
boolean |
hasEffect(org.cloudburstmc.api.potion.EffectType type) |
boolean |
hasEffect(int effectId)
Deprecated.
|
boolean |
hasNameTag() |
void |
heal(org.cloudburstmc.api.event.entity.EntityRegainHealthEvent source) |
void |
heal(float amount) |
protected void |
init(org.cloudburstmc.api.level.Location location) |
protected void |
initEntity() |
boolean |
isAlive() |
boolean |
isClosed() |
boolean |
isControlling(org.cloudburstmc.api.entity.Entity entity) |
boolean |
isImmobile() |
boolean |
isInsideOfFire() |
boolean |
isInsideOfSolid() |
boolean |
isInsideOfWater() |
boolean |
isInvulnerable() |
boolean |
isNameTagAlwaysVisible() |
boolean |
isNameTagVisible() |
boolean |
isOnGround() |
boolean |
isPassenger(org.cloudburstmc.api.entity.Entity entity) |
void |
kill() |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
boolean |
mount(org.cloudburstmc.api.entity.Entity vehicle,
org.cloudburstmc.api.util.data.MountType mode)
Mount or dismounts an Entity from a/into vehicle
|
boolean |
move(float dx,
float dy,
float dz) |
boolean |
move(com.nukkitx.math.vector.Vector3f d) |
void |
onCollideWithPlayer(EntityHuman entityPlayer) |
void |
onDismount(org.cloudburstmc.api.entity.Entity passenger) |
void |
onEntityCollision(org.cloudburstmc.api.entity.Entity entity) |
boolean |
onInteract(org.cloudburstmc.api.player.Player player,
org.cloudburstmc.api.item.ItemStack item) |
boolean |
onInteract(org.cloudburstmc.api.player.Player player,
org.cloudburstmc.api.item.ItemStack item,
com.nukkitx.math.vector.Vector3f clickedPos) |
void |
onMount(org.cloudburstmc.api.entity.Entity passenger) |
void |
onStruckByLightning(org.cloudburstmc.api.entity.misc.LightningBolt lightningBolt) |
boolean |
onUpdate(int currentTick) |
void |
recalculateBoundingBox() |
protected void |
recalculateEffectColor() |
void |
removeAllEffects() |
void |
removeEffect(org.cloudburstmc.api.potion.EffectType type) |
void |
removeEffect(int effectId)
Deprecated.
|
void |
resetFallDistance() |
void |
respawnToAll() |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
scheduleUpdate() |
void |
sendData(CloudPlayer player) |
void |
sendData(CloudPlayer player,
com.nukkitx.protocol.bedrock.data.entity.EntityData... data) |
void |
sendFlags(CloudPlayer player) |
void |
sendPotionEffects(CloudPlayer player) |
void |
setAbsorption(float absorption) |
void |
setAir(short air) |
void |
setCanClimb() |
void |
setCanClimb(boolean value) |
void |
setCanClimbWalls() |
void |
setCanClimbWalls(boolean value) |
void |
setFallDistance(float fallDistance) |
void |
setHealth(float health) |
void |
setHighestPosition(float highestPosition) |
void |
setImmobile() |
void |
setImmobile(boolean value) |
void |
setInvulnerable(boolean invulnerable) |
void |
setLastDamageCause(org.cloudburstmc.api.event.entity.EntityDamageEvent type) |
void |
setMaxHealth(int maxHealth) |
boolean |
setMotion(com.nukkitx.math.vector.Vector3f motion) |
void |
setNameTag(String name) |
void |
setNameTagAlwaysVisible() |
void |
setNameTagAlwaysVisible(boolean value) |
void |
setNameTagVisible() |
void |
setNameTagVisible(boolean value) |
void |
setNoDamageTicks(int noDamageTicks) |
void |
setOnFire(int seconds) |
void |
setOnGround(boolean onGround) |
void |
setOwner(org.cloudburstmc.api.entity.Entity entity) |
boolean |
setPosition(com.nukkitx.math.vector.Vector3f pos) |
boolean |
setPositionAndRotation(com.nukkitx.math.vector.Vector3f pos,
float yaw,
float pitch) |
void |
setRotation(float yaw,
float pitch) |
void |
setScale(float scale) |
void |
setScoreTag(String score) |
void |
setSeatPosition(com.nukkitx.math.vector.Vector3f pos) |
void |
spawnTo(CloudPlayer player) |
void |
spawnTo(org.cloudburstmc.api.player.Player player) |
void |
spawnToAll() |
protected boolean |
switchLevel(CloudLevel targetLevel) |
boolean |
teleport(org.cloudburstmc.api.level.Location location) |
boolean |
teleport(org.cloudburstmc.api.level.Location location,
org.cloudburstmc.api.event.player.PlayerTeleportEvent.TeleportCause cause) |
boolean |
teleport(com.nukkitx.math.vector.Vector3f pos) |
boolean |
teleport(com.nukkitx.math.vector.Vector3f pos,
org.cloudburstmc.api.event.player.PlayerTeleportEvent.TeleportCause cause) |
String |
toString() |
protected void |
updateFallState(boolean onGround) |
void |
updateMovement() |
protected void |
updatePassengerPosition(org.cloudburstmc.api.entity.Entity passenger) |
void |
updatePassengers() |
protected final Set<CloudPlayer> hasSpawned
protected final it.unimi.dsi.fastutil.objects.Reference2ObjectOpenHashMap<org.cloudburstmc.api.potion.EffectType,org.cloudburstmc.api.potion.Effect> effects
protected final List<org.cloudburstmc.api.entity.Entity> passengers
protected final SyncedEntityData data
public CloudChunk chunk
public List<org.cloudburstmc.api.block.Block> blocksAround
public List<org.cloudburstmc.api.block.Block> collisionBlockStates
public com.nukkitx.nbt.NbtMap tag
public float highestPosition
public boolean firstMove
protected com.nukkitx.math.vector.Vector3f position
protected com.nukkitx.math.vector.Vector3f lastPosition
protected com.nukkitx.math.vector.Vector3f motion
protected com.nukkitx.math.vector.Vector3f lastMotion
protected float yaw
protected float pitch
protected float lastYaw
protected float lastPitch
protected float pitchDelta
protected float yawDelta
protected float entityCollisionReduction
public boolean onGround
public boolean inBlock
public boolean positionChanged
public boolean motionChanged
public int deadTicks
public boolean keepMovement
public float fallDistance
public int ticksLived
public int lastUpdate
public int maxFireTicks
public int fireTicks
public int inPortalTicks
public float scale
protected org.cloudburstmc.api.util.AxisAlignedBB boundingBox
public boolean isCollided
public boolean isCollidedHorizontally
public boolean isCollidedVertically
public int noDamageTicks
public boolean justCreated
public boolean fireProof
public boolean invulnerable
protected CloudLevel level
public boolean closed
protected org.cloudburstmc.api.entity.Entity vehicle
protected org.cloudburstmc.api.event.entity.EntityDamageEvent lastDamageCause
protected int age
protected float health
protected float absorption
protected float ySize
protected boolean isStatic
protected CloudServer server
protected Timing timing
protected boolean isPlayer
public BaseEntity(org.cloudburstmc.api.entity.EntityType<?> type,
org.cloudburstmc.api.level.Location location)
public float getHeight()
getHeight in interface org.cloudburstmc.api.entity.Entitypublic float getEyeHeight()
getEyeHeight in interface org.cloudburstmc.api.entity.Entitypublic float getWidth()
getWidth in interface org.cloudburstmc.api.entity.Entitypublic float getLength()
getLength in interface org.cloudburstmc.api.entity.Entityprotected float getStepHeight()
public boolean canCollide()
canCollide in interface org.cloudburstmc.api.entity.Entitypublic float getGravity()
getGravity in interface org.cloudburstmc.api.entity.Entitypublic float getDrag()
getDrag in interface org.cloudburstmc.api.entity.Entityprotected float getBaseOffset()
protected void initEntity()
public org.cloudburstmc.api.entity.EntityType<?> getType()
getType in interface org.cloudburstmc.api.entity.Entitypublic CloudLevel getLevel()
getLevel in interface org.cloudburstmc.api.entity.Entitypublic CloudChunk getChunk()
getChunk in interface org.cloudburstmc.api.entity.Entitypublic float getX()
getX in interface org.cloudburstmc.api.entity.Entitypublic float getY()
getY in interface org.cloudburstmc.api.entity.Entitypublic float getZ()
getZ in interface org.cloudburstmc.api.entity.Entitypublic float getPitch()
getPitch in interface org.cloudburstmc.api.entity.Entitypublic float getYaw()
getYaw in interface org.cloudburstmc.api.entity.Entitypublic void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
public void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
public SyncedEntityData getData()
public boolean hasNameTag()
hasNameTag in interface org.cloudburstmc.api.entity.Entitypublic String getNameTag()
getNameTag in interface org.cloudburstmc.api.entity.Entitypublic void setNameTag(String name)
setNameTag in interface org.cloudburstmc.api.entity.Entitypublic boolean isNameTagVisible()
isNameTagVisible in interface org.cloudburstmc.api.entity.Entitypublic void setNameTagVisible(boolean value)
setNameTagVisible in interface org.cloudburstmc.api.entity.Entitypublic void setNameTagVisible()
public boolean isNameTagAlwaysVisible()
public void setNameTagAlwaysVisible(boolean value)
public void setNameTagAlwaysVisible()
public String getScoreTag()
public void setScoreTag(String score)
public boolean isImmobile()
public void setImmobile(boolean value)
public void setImmobile()
public boolean canClimb()
public void setCanClimb()
public void setCanClimb(boolean value)
public boolean canClimbWalls()
public void setCanClimbWalls()
public void setCanClimbWalls(boolean value)
public float getScale()
getScale in interface org.cloudburstmc.api.entity.Entitypublic void setScale(float scale)
setScale in interface org.cloudburstmc.api.entity.Entitypublic short getAir()
public void setAir(short air)
public boolean isInvulnerable()
public void setInvulnerable(boolean invulnerable)
public List<org.cloudburstmc.api.entity.Entity> getPassengers()
getPassengers in interface org.cloudburstmc.api.entity.Entitypublic org.cloudburstmc.api.entity.Entity getPassenger()
public boolean isPassenger(org.cloudburstmc.api.entity.Entity entity)
isPassenger in interface org.cloudburstmc.api.entity.Entitypublic boolean isControlling(org.cloudburstmc.api.entity.Entity entity)
isControlling in interface org.cloudburstmc.api.entity.Entitypublic boolean hasControllingPassenger()
hasControllingPassenger in interface org.cloudburstmc.api.entity.Entitypublic org.cloudburstmc.api.entity.Entity getVehicle()
getVehicle in interface org.cloudburstmc.api.entity.Entitypublic Map<org.cloudburstmc.api.potion.EffectType,org.cloudburstmc.api.potion.Effect> getEffects()
getEffects in interface org.cloudburstmc.api.entity.Entitypublic void removeAllEffects()
removeAllEffects in interface org.cloudburstmc.api.entity.Entity@Deprecated public void removeEffect(int effectId)
removeEffect in interface org.cloudburstmc.api.entity.Entitypublic void removeEffect(org.cloudburstmc.api.potion.EffectType type)
removeEffect in interface org.cloudburstmc.api.entity.Entity@Deprecated public org.cloudburstmc.api.potion.Effect getEffect(int effectId)
getEffect in interface org.cloudburstmc.api.entity.Entity@Nullable public CloudEffect getEffect(org.cloudburstmc.api.potion.EffectType type)
getEffect in interface org.cloudburstmc.api.entity.Entity@Deprecated public boolean hasEffect(int effectId)
hasEffect in interface org.cloudburstmc.api.entity.Entitypublic boolean hasEffect(org.cloudburstmc.api.potion.EffectType type)
hasEffect in interface org.cloudburstmc.api.entity.Entitypublic void addEffect(org.cloudburstmc.api.potion.Effect effect)
addEffect in interface org.cloudburstmc.api.entity.Entitypublic void recalculateBoundingBox()
protected void recalculateEffectColor()
protected final void init(org.cloudburstmc.api.level.Location location)
public com.nukkitx.nbt.NbtMap getTag()
public String getName()
getName in interface org.cloudburstmc.api.entity.Entitypublic void spawnTo(org.cloudburstmc.api.player.Player player)
spawnTo in interface org.cloudburstmc.api.entity.Entitypublic void spawnTo(CloudPlayer player)
protected com.nukkitx.protocol.bedrock.BedrockPacket createAddEntityPacket()
public Set<CloudPlayer> getViewers()
getViewers in interface org.cloudburstmc.api.entity.Entitypublic void sendPotionEffects(CloudPlayer player)
public void sendData(CloudPlayer player)
public void sendData(CloudPlayer player, com.nukkitx.protocol.bedrock.data.entity.EntityData... data)
public void sendFlags(CloudPlayer player)
public void despawnFrom(org.cloudburstmc.api.player.Player player)
despawnFrom in interface org.cloudburstmc.api.entity.Entitypublic void despawnFrom(CloudPlayer player)
public boolean attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source)
attack in interface org.cloudburstmc.api.entity.Entitypublic boolean attack(float damage)
attack in interface org.cloudburstmc.api.entity.Entitypublic void heal(org.cloudburstmc.api.event.entity.EntityRegainHealthEvent source)
heal in interface org.cloudburstmc.api.entity.Entitypublic void heal(float amount)
heal in interface org.cloudburstmc.api.entity.Entitypublic float getHealth()
getHealth in interface org.cloudburstmc.api.entity.Entitypublic void setHealth(float health)
setHealth in interface org.cloudburstmc.api.entity.Entitypublic boolean isAlive()
isAlive in interface org.cloudburstmc.api.entity.Entitypublic boolean isClosed()
isClosed in interface org.cloudburstmc.api.entity.Entitypublic org.cloudburstmc.api.event.entity.EntityDamageEvent getLastDamageCause()
getLastDamageCause in interface org.cloudburstmc.api.entity.Entitypublic void setLastDamageCause(org.cloudburstmc.api.event.entity.EntityDamageEvent type)
public int getMaxHealth()
getMaxHealth in interface org.cloudburstmc.api.entity.Entitypublic void setMaxHealth(int maxHealth)
setMaxHealth in interface org.cloudburstmc.api.entity.Entitypublic boolean canCollideWith(org.cloudburstmc.api.entity.Entity entity)
canCollideWith in interface org.cloudburstmc.api.entity.Entityprotected boolean checkObstruction(com.nukkitx.math.vector.Vector3f pos)
protected boolean checkObstruction(float x,
float y,
float z)
public boolean entityBaseTick()
public boolean entityBaseTick(int tickDiff)
public void updateMovement()
public void addMovement(double x,
double y,
double z,
double yaw,
double pitch,
double headYaw)
public void addMotion(com.nukkitx.math.vector.Vector3f motion)
public com.nukkitx.math.vector.Vector3f getDirectionVector()
getDirectionVector in interface org.cloudburstmc.api.entity.Entitypublic com.nukkitx.math.vector.Vector2f getDirectionPlane()
getDirectionPlane in interface org.cloudburstmc.api.entity.Entitypublic org.cloudburstmc.api.util.Direction getHorizontalDirection()
getHorizontalDirection in interface org.cloudburstmc.api.entity.Entitypublic org.cloudburstmc.api.util.data.CardinalDirection getCardinalDirection()
public boolean onUpdate(int currentTick)
onUpdate in interface org.cloudburstmc.api.entity.Entitypublic boolean mount(org.cloudburstmc.api.entity.Entity vehicle,
org.cloudburstmc.api.util.data.MountType mode)
mount in interface org.cloudburstmc.api.entity.Entityvehicle - The target Entitytrue if the mounting successfulpublic boolean dismount(org.cloudburstmc.api.entity.Entity vehicle)
dismount in interface org.cloudburstmc.api.entity.Entitypublic void onMount(org.cloudburstmc.api.entity.Entity passenger)
onMount in interface org.cloudburstmc.api.entity.Entitypublic void onDismount(org.cloudburstmc.api.entity.Entity passenger)
onDismount in interface org.cloudburstmc.api.entity.Entityprotected void broadcastLinkPacket(org.cloudburstmc.api.entity.Entity vehicle,
com.nukkitx.protocol.bedrock.data.entity.EntityLinkData.Type type)
public void updatePassengers()
protected void updatePassengerPosition(org.cloudburstmc.api.entity.Entity passenger)
public com.nukkitx.math.vector.Vector3f getSeatPosition()
getSeatPosition in interface org.cloudburstmc.api.entity.Entitypublic void setSeatPosition(com.nukkitx.math.vector.Vector3f pos)
setSeatPosition in interface org.cloudburstmc.api.entity.Entitypublic com.nukkitx.math.vector.Vector3f getMountedOffset(org.cloudburstmc.api.entity.Entity entity)
public final void scheduleUpdate()
public int getNoDamageTicks()
getNoDamageTicks in interface org.cloudburstmc.api.entity.Entitypublic void setNoDamageTicks(int noDamageTicks)
setNoDamageTicks in interface org.cloudburstmc.api.entity.Entitypublic int getFireTicks()
getFireTicks in interface org.cloudburstmc.api.entity.Entitypublic void setOnFire(int seconds)
setOnFire in interface org.cloudburstmc.api.entity.Entitypublic float getAbsorption()
getAbsorption in interface org.cloudburstmc.api.entity.Entitypublic void setAbsorption(float absorption)
setAbsorption in interface org.cloudburstmc.api.entity.Entitypublic org.cloudburstmc.api.util.Direction getDirection()
getDirection in interface org.cloudburstmc.api.entity.Entitypublic void extinguish()
extinguish in interface org.cloudburstmc.api.entity.Entitypublic boolean canTriggerWalking()
public float getHighestPosition()
getHighestPosition in interface org.cloudburstmc.api.entity.Entitypublic void setHighestPosition(float highestPosition)
setHighestPosition in interface org.cloudburstmc.api.entity.Entitypublic void setFallDistance(float fallDistance)
public void resetFallDistance()
resetFallDistance in interface org.cloudburstmc.api.entity.Entityprotected void updateFallState(boolean onGround)
public org.cloudburstmc.api.util.AxisAlignedBB getBoundingBox()
getBoundingBox in interface org.cloudburstmc.api.entity.Entitypublic void fall(float fallDistance)
fall in interface org.cloudburstmc.api.entity.Entitypublic void handleLavaMovement()
public void onCollideWithPlayer(EntityHuman entityPlayer)
public void onEntityCollision(org.cloudburstmc.api.entity.Entity entity)
onEntityCollision in interface org.cloudburstmc.api.entity.Entitypublic void onStruckByLightning(org.cloudburstmc.api.entity.misc.LightningBolt lightningBolt)
onStruckByLightning in interface org.cloudburstmc.api.entity.Entitypublic boolean onInteract(org.cloudburstmc.api.player.Player player,
org.cloudburstmc.api.item.ItemStack item,
com.nukkitx.math.vector.Vector3f clickedPos)
onInteract in interface org.cloudburstmc.api.entity.Entitypublic boolean onInteract(org.cloudburstmc.api.player.Player player,
org.cloudburstmc.api.item.ItemStack item)
protected boolean switchLevel(CloudLevel targetLevel)
public com.nukkitx.math.vector.Vector3f getPosition()
getPosition in interface org.cloudburstmc.api.entity.Entitypublic org.cloudburstmc.api.level.Location getLocation()
getLocation in interface org.cloudburstmc.api.entity.Entitypublic boolean isInsideOfWater()
public boolean isInsideOfSolid()
public boolean isInsideOfFire()
public boolean fastMove(float dx,
float dy,
float dz)
public boolean move(com.nukkitx.math.vector.Vector3f d)
public boolean move(float dx,
float dy,
float dz)
protected void checkGroundState(double movX,
double movY,
double movZ,
double dx,
double dy,
double dz)
public List<org.cloudburstmc.api.block.Block> getBlocksAround()
public List<org.cloudburstmc.api.block.Block> getCollisionBlocks()
public boolean canBeMovedByCurrents()
canBeMovedByCurrents in interface org.cloudburstmc.api.entity.Entityprotected void checkBlockCollision()
public boolean setPositionAndRotation(com.nukkitx.math.vector.Vector3f pos,
float yaw,
float pitch)
setPositionAndRotation in interface org.cloudburstmc.api.entity.Entitypublic void setRotation(float yaw,
float pitch)
setRotation in interface org.cloudburstmc.api.entity.Entitypublic boolean canTriggerPressurePlate()
canTriggerPressurePlate in interface org.cloudburstmc.api.entity.Entitypublic boolean canPassThrough()
canPassThrough in interface org.cloudburstmc.api.entity.Entityprotected void checkChunks()
public boolean setPosition(com.nukkitx.math.vector.Vector3f pos)
setPosition in interface org.cloudburstmc.api.entity.Entitypublic com.nukkitx.math.vector.Vector3f getMotion()
getMotion in interface org.cloudburstmc.api.entity.Entitypublic boolean setMotion(com.nukkitx.math.vector.Vector3f motion)
setMotion in interface org.cloudburstmc.api.entity.Entitypublic boolean isOnGround()
isOnGround in interface org.cloudburstmc.api.entity.Entitypublic void setOnGround(boolean onGround)
setOnGround in interface org.cloudburstmc.api.entity.Entitypublic void kill()
kill in interface org.cloudburstmc.api.entity.Entitypublic boolean teleport(com.nukkitx.math.vector.Vector3f pos)
teleport in interface org.cloudburstmc.api.entity.Entitypublic boolean teleport(com.nukkitx.math.vector.Vector3f pos,
org.cloudburstmc.api.event.player.PlayerTeleportEvent.TeleportCause cause)
teleport in interface org.cloudburstmc.api.entity.Entitypublic boolean teleport(org.cloudburstmc.api.level.Location location)
teleport in interface org.cloudburstmc.api.entity.Entitypublic boolean teleport(org.cloudburstmc.api.level.Location location,
org.cloudburstmc.api.event.player.PlayerTeleportEvent.TeleportCause cause)
teleport in interface org.cloudburstmc.api.entity.Entitypublic long getUniqueId()
getUniqueId in interface org.cloudburstmc.api.entity.Entitypublic long getRuntimeId()
getRuntimeId in interface org.cloudburstmc.api.entity.Entitypublic void respawnToAll()
public void spawnToAll()
spawnToAll in interface org.cloudburstmc.api.entity.Entitypublic void despawnFromAll()
despawnFromAll in interface org.cloudburstmc.api.entity.Entitypublic void close()
close in interface org.cloudburstmc.api.entity.Entity@Nullable public org.cloudburstmc.api.entity.Entity getOwner()
getOwner in interface org.cloudburstmc.api.entity.Entitypublic void setOwner(@Nullable org.cloudburstmc.api.entity.Entity entity)
setOwner in interface org.cloudburstmc.api.entity.Entitypublic CloudServer getServer()
getServer in interface org.cloudburstmc.api.entity.EntityCopyright © 2021. All rights reserved.