public abstract class EntityLiving extends BaseEntity implements org.cloudburstmc.api.entity.Damageable, org.cloudburstmc.api.entity.Living
| Modifier and Type | Field and Description |
|---|---|
protected int |
attackTime |
protected boolean |
invisible |
protected float |
movementSpeed |
protected int |
turtleTicks |
absorption, age, blocksAround, boundingBox, chunk, closed, collisionBlockStates, data, deadTicks, effects, entityCollisionReduction, fallDistance, fireProof, fireTicks, firstMove, hasSpawned, health, highestPosition, inBlock, inPortalTicks, invulnerable, isCollided, isCollidedHorizontally, isCollidedVertically, isPlayer, isStatic, justCreated, keepMovement, lastDamageCause, lastMotion, lastPitch, lastPosition, lastUpdate, lastYaw, level, maxFireTicks, motion, motionChanged, noDamageTicks, onGround, passengers, pitch, pitchDelta, position, positionChanged, scale, server, tag, ticksLived, timing, vehicle, yaw, yawDelta, ySize| Constructor and Description |
|---|
EntityLiving(org.cloudburstmc.api.entity.EntityType<?> type,
org.cloudburstmc.api.level.Location location) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source) |
void |
collidingWith(org.cloudburstmc.api.entity.Entity ent) |
boolean |
entityBaseTick() |
boolean |
entityBaseTick(int tickDiff) |
int |
getAirTicks() |
float |
getDrag() |
org.cloudburstmc.api.item.ItemStack[] |
getDrops() |
float |
getGravity() |
org.cloudburstmc.api.block.Block[] |
getLineOfSight(int maxDistance) |
org.cloudburstmc.api.block.Block[] |
getLineOfSight(int maxDistance,
int maxLength) |
org.cloudburstmc.api.block.Block[] |
getLineOfSight(int maxDistance,
int maxLength,
org.cloudburstmc.api.block.BlockType[] transparent) |
float |
getMovementSpeed() |
org.cloudburstmc.api.block.Block |
getTargetBlock(int maxDistance) |
org.cloudburstmc.api.block.Block |
getTargetBlock(int maxDistance,
org.cloudburstmc.api.block.BlockType[] transparent) |
boolean |
hasLineOfSight(org.cloudburstmc.api.entity.Entity entity) |
void |
kill() |
void |
knockBack(org.cloudburstmc.api.entity.Entity attacker,
float strength,
float diffX,
float diffZ) |
void |
loadAdditionalData(com.nukkitx.nbt.NbtMap tag) |
void |
saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag) |
void |
setAirTicks(int ticks) |
void |
setHealth(float health) |
void |
setMovementSpeed(float speed) |
addEffect, addMotion, addMovement, attack, broadcastLinkPacket, canBeMovedByCurrents, canClimb, canClimbWalls, canCollide, canCollideWith, canPassThrough, canTriggerPressurePlate, canTriggerWalking, checkBlockCollision, checkChunks, checkGroundState, checkObstruction, checkObstruction, close, createAddEntityPacket, despawnFrom, despawnFrom, despawnFromAll, dismount, extinguish, fall, fastMove, getAbsorption, getAir, getBaseOffset, getBlocksAround, getBoundingBox, getCardinalDirection, getChunk, getCollisionBlocks, getData, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHeight, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLength, getLevel, getLocation, getMaxHealth, getMotion, getMountedOffset, getName, getNameTag, getNoDamageTicks, getOwner, getPassenger, getPassengers, getPitch, getPosition, getRuntimeId, getScale, getScoreTag, getSeatPosition, getServer, getStepHeight, getTag, getType, getUniqueId, getVehicle, getViewers, getWidth, getX, getY, getYaw, getZ, handleLavaMovement, hasControllingPassenger, hasEffect, hasEffect, hasNameTag, heal, heal, init, initEntity, isAlive, isClosed, isControlling, isImmobile, isInsideOfFire, isInsideOfSolid, isInsideOfWater, isInvulnerable, isNameTagAlwaysVisible, isNameTagVisible, isOnGround, isPassenger, mount, move, move, onCollideWithPlayer, onDismount, onEntityCollision, onInteract, onInteract, onMount, onStruckByLightning, onUpdate, recalculateBoundingBox, recalculateEffectColor, removeAllEffects, removeEffect, removeEffect, resetFallDistance, respawnToAll, scheduleUpdate, sendData, sendData, sendFlags, sendPotionEffects, setAbsorption, setAir, setCanClimb, setCanClimb, setCanClimbWalls, setCanClimbWalls, setFallDistance, setHighestPosition, setImmobile, setImmobile, setInvulnerable, setLastDamageCause, setMaxHealth, setMotion, setNameTag, setNameTagAlwaysVisible, setNameTagAlwaysVisible, setNameTagVisible, setNameTagVisible, setNoDamageTicks, setOnFire, setOnGround, setOwner, setPosition, setPositionAndRotation, setRotation, setScale, setScoreTag, setSeatPosition, spawnTo, spawnTo, spawnToAll, switchLevel, teleport, teleport, teleport, teleport, toString, updateFallState, updateMovement, updatePassengerPosition, updatePassengersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEffect, attack, canBeMovedByCurrents, canCollide, canCollideWith, canPassThrough, canTriggerPressurePlate, close, despawnFrom, despawnFromAll, dismount, extinguish, fall, getAbsorption, getBoundingBox, getChunk, getDirection, getDirectionPlane, getDirectionVector, getEffect, getEffect, getEffects, getEyeHeight, getFireTicks, getHealth, getHeight, getHighestPosition, getHorizontalDirection, getLastDamageCause, getLength, getLevel, getLocation, getMaxHealth, getMotion, getName, getNameTag, getNoDamageTicks, getOwner, getPassengers, getPitch, getPosition, getRuntimeId, getScale, getSeatPosition, getServer, getType, getUniqueId, getVehicle, getViewers, getWidth, getX, getY, getYaw, getZ, hasControllingPassenger, hasEffect, hasEffect, hasNameTag, heal, heal, isAlive, isClosed, isControlling, isNameTagVisible, isOnFire, isOnGround, isPassenger, isUndead, mount, mount, onDismount, onEntityCollision, onInteract, onMount, onStruckByLightning, onUpdate, removeAllEffects, removeEffect, removeEffect, resetFallDistance, setAbsorption, setHighestPosition, setMaxHealth, setMotion, setNameTag, setNameTagVisible, setNoDamageTicks, setOnFire, setOnGround, setOwner, setPosition, setPositionAndRotation, setRotation, setScale, setSeatPosition, spawnTo, spawnToAll, teleport, teleport, teleport, teleportprotected int attackTime
protected boolean invisible
protected float movementSpeed
protected int turtleTicks
public EntityLiving(org.cloudburstmc.api.entity.EntityType<?> type,
org.cloudburstmc.api.level.Location location)
public float getGravity()
getGravity in interface org.cloudburstmc.api.entity.EntitygetGravity in class BaseEntitypublic float getDrag()
getDrag in interface org.cloudburstmc.api.entity.EntitygetDrag in class BaseEntitypublic void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
loadAdditionalData in class BaseEntitypublic void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
saveAdditionalData in class BaseEntitypublic void setHealth(float health)
setHealth in interface org.cloudburstmc.api.entity.EntitysetHealth in class BaseEntitypublic boolean hasLineOfSight(org.cloudburstmc.api.entity.Entity entity)
public void collidingWith(org.cloudburstmc.api.entity.Entity ent)
public boolean attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source)
attack in interface org.cloudburstmc.api.entity.Entityattack in class BaseEntitypublic void knockBack(org.cloudburstmc.api.entity.Entity attacker,
float strength,
float diffX,
float diffZ)
public void kill()
kill in interface org.cloudburstmc.api.entity.Entitykill in class BaseEntitypublic boolean entityBaseTick()
entityBaseTick in class BaseEntitypublic boolean entityBaseTick(int tickDiff)
entityBaseTick in class BaseEntitypublic org.cloudburstmc.api.item.ItemStack[] getDrops()
public org.cloudburstmc.api.block.Block[] getLineOfSight(int maxDistance)
public org.cloudburstmc.api.block.Block[] getLineOfSight(int maxDistance,
int maxLength)
public org.cloudburstmc.api.block.Block[] getLineOfSight(int maxDistance,
int maxLength,
org.cloudburstmc.api.block.BlockType[] transparent)
public org.cloudburstmc.api.block.Block getTargetBlock(int maxDistance)
public org.cloudburstmc.api.block.Block getTargetBlock(int maxDistance,
org.cloudburstmc.api.block.BlockType[] transparent)
public void setMovementSpeed(float speed)
public float getMovementSpeed()
public int getAirTicks()
public void setAirTicks(int ticks)
Copyright © 2021. All rights reserved.