Class BaseEntity

java.lang.Object
org.cloudburstmc.server.entity.BaseEntity
All Implemented Interfaces:
org.cloudburstmc.api.entity.Entity
Direct Known Subclasses:
EntityAreaEffectCloud, EntityArmorStand, EntityDroppedItem, EntityEnderCrystal, EntityEvocationFang, EntityExperienceOrb, EntityFallingBlock, EntityFireworksRocket, EntityIronGolem, EntityLeashKnot, EntityLightningBolt, EntityLiving, EntityPrimedTnt, EntityProjectile, EntitySnowGolem, EntityVehicle, HangingEntity, UnknownEntity

public abstract class BaseEntity extends Object implements org.cloudburstmc.api.entity.Entity
Author:
MagicDroidX
  • Field Details

    • hasSpawned

      protected final Set<CloudPlayer> hasSpawned
    • effects

      protected final it.unimi.dsi.fastutil.objects.Reference2ObjectOpenHashMap<org.cloudburstmc.api.potion.EffectType,​org.cloudburstmc.api.potion.Effect> effects
    • passengers

      protected final List<org.cloudburstmc.api.entity.Entity> passengers
    • data

      protected final SyncedEntityData data
    • chunk

      public CloudChunk chunk
    • blocksAround

      public List<org.cloudburstmc.api.block.Block> blocksAround
    • collisionBlockStates

      public List<org.cloudburstmc.api.block.Block> collisionBlockStates
    • tag

      public com.nukkitx.nbt.NbtMap tag
    • highestPosition

      public float highestPosition
    • firstMove

      public boolean firstMove
    • position

      protected com.nukkitx.math.vector.Vector3f position
    • lastPosition

      protected com.nukkitx.math.vector.Vector3f lastPosition
    • motion

      protected com.nukkitx.math.vector.Vector3f motion
    • lastMotion

      protected com.nukkitx.math.vector.Vector3f lastMotion
    • yaw

      protected float yaw
    • pitch

      protected float pitch
    • lastYaw

      protected float lastYaw
    • lastPitch

      protected float lastPitch
    • pitchDelta

      protected float pitchDelta
    • yawDelta

      protected float yawDelta
    • entityCollisionReduction

      protected float entityCollisionReduction
    • onGround

      public boolean onGround
    • inBlock

      public boolean inBlock
    • positionChanged

      public boolean positionChanged
    • motionChanged

      public boolean motionChanged
    • deadTicks

      public int deadTicks
    • keepMovement

      public boolean keepMovement
    • fallDistance

      public float fallDistance
    • ticksLived

      public int ticksLived
    • lastUpdate

      public int lastUpdate
    • maxFireTicks

      public int maxFireTicks
    • fireTicks

      public int fireTicks
    • inPortalTicks

      public int inPortalTicks
    • scale

      public float scale
    • boundingBox

      protected org.cloudburstmc.api.util.AxisAlignedBB boundingBox
    • isCollided

      public boolean isCollided
    • isCollidedHorizontally

      public boolean isCollidedHorizontally
    • isCollidedVertically

      public boolean isCollidedVertically
    • noDamageTicks

      public int noDamageTicks
    • justCreated

      public boolean justCreated
    • fireProof

      public boolean fireProof
    • invulnerable

      public boolean invulnerable
    • level

      protected CloudLevel level
    • closed

      public boolean closed
    • vehicle

      protected org.cloudburstmc.api.entity.Entity vehicle
    • lastDamageCause

      protected org.cloudburstmc.api.event.entity.EntityDamageEvent lastDamageCause
    • age

      protected int age
    • health

      protected float health
    • absorption

      protected float absorption
    • ySize

      protected float ySize
    • isStatic

      protected boolean isStatic
    • server

      protected CloudServer server
    • timing

      protected Timing timing
    • isPlayer

      protected boolean isPlayer
  • Constructor Details

    • BaseEntity

      public BaseEntity(org.cloudburstmc.api.entity.EntityType<?> type, org.cloudburstmc.api.level.Location location)
  • Method Details

    • getHeight

      public float getHeight()
      Specified by:
      getHeight in interface org.cloudburstmc.api.entity.Entity
    • getEyeHeight

      public float getEyeHeight()
      Specified by:
      getEyeHeight in interface org.cloudburstmc.api.entity.Entity
    • getWidth

      public float getWidth()
      Specified by:
      getWidth in interface org.cloudburstmc.api.entity.Entity
    • getLength

      public float getLength()
      Specified by:
      getLength in interface org.cloudburstmc.api.entity.Entity
    • getStepHeight

      protected float getStepHeight()
    • canCollide

      public boolean canCollide()
      Specified by:
      canCollide in interface org.cloudburstmc.api.entity.Entity
    • getGravity

      public float getGravity()
      Specified by:
      getGravity in interface org.cloudburstmc.api.entity.Entity
    • getDrag

      public float getDrag()
      Specified by:
      getDrag in interface org.cloudburstmc.api.entity.Entity
    • getBaseOffset

      protected float getBaseOffset()
    • initEntity

      protected void initEntity()
    • getType

      public org.cloudburstmc.api.entity.EntityType<?> getType()
      Specified by:
      getType in interface org.cloudburstmc.api.entity.Entity
    • getLevel

      public CloudLevel getLevel()
      Specified by:
      getLevel in interface org.cloudburstmc.api.entity.Entity
    • getChunk

      public CloudChunk getChunk()
      Specified by:
      getChunk in interface org.cloudburstmc.api.entity.Entity
    • getX

      public float getX()
      Specified by:
      getX in interface org.cloudburstmc.api.entity.Entity
    • getY

      public float getY()
      Specified by:
      getY in interface org.cloudburstmc.api.entity.Entity
    • getZ

      public float getZ()
      Specified by:
      getZ in interface org.cloudburstmc.api.entity.Entity
    • getPitch

      public float getPitch()
      Specified by:
      getPitch in interface org.cloudburstmc.api.entity.Entity
    • getYaw

      public float getYaw()
      Specified by:
      getYaw in interface org.cloudburstmc.api.entity.Entity
    • loadAdditionalData

      public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
    • saveAdditionalData

      public void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
    • getData

      public SyncedEntityData getData()
    • hasNameTag

      public boolean hasNameTag()
      Specified by:
      hasNameTag in interface org.cloudburstmc.api.entity.Entity
    • getNameTag

      public String getNameTag()
      Specified by:
      getNameTag in interface org.cloudburstmc.api.entity.Entity
    • setNameTag

      public void setNameTag(String name)
      Specified by:
      setNameTag in interface org.cloudburstmc.api.entity.Entity
    • isNameTagVisible

      public boolean isNameTagVisible()
      Specified by:
      isNameTagVisible in interface org.cloudburstmc.api.entity.Entity
    • setNameTagVisible

      public void setNameTagVisible(boolean value)
      Specified by:
      setNameTagVisible in interface org.cloudburstmc.api.entity.Entity
    • setNameTagVisible

      public void setNameTagVisible()
    • isNameTagAlwaysVisible

      public boolean isNameTagAlwaysVisible()
    • setNameTagAlwaysVisible

      public void setNameTagAlwaysVisible(boolean value)
    • setNameTagAlwaysVisible

      public void setNameTagAlwaysVisible()
    • getScoreTag

      public String getScoreTag()
    • setScoreTag

      public void setScoreTag(String score)
    • isImmobile

      public boolean isImmobile()
    • setImmobile

      public void setImmobile(boolean value)
    • setImmobile

      public void setImmobile()
    • canClimb

      public boolean canClimb()
    • setCanClimb

      public void setCanClimb()
    • setCanClimb

      public void setCanClimb(boolean value)
    • canClimbWalls

      public boolean canClimbWalls()
    • setCanClimbWalls

      public void setCanClimbWalls()
    • setCanClimbWalls

      public void setCanClimbWalls(boolean value)
    • getScale

      public float getScale()
      Specified by:
      getScale in interface org.cloudburstmc.api.entity.Entity
    • setScale

      public void setScale(float scale)
      Specified by:
      setScale in interface org.cloudburstmc.api.entity.Entity
    • getAir

      public short getAir()
    • setAir

      public void setAir(short air)
    • isInvulnerable

      public boolean isInvulnerable()
    • setInvulnerable

      public void setInvulnerable(boolean invulnerable)
    • getPassengers

      public List<org.cloudburstmc.api.entity.Entity> getPassengers()
      Specified by:
      getPassengers in interface org.cloudburstmc.api.entity.Entity
    • getPassenger

      public org.cloudburstmc.api.entity.Entity getPassenger()
    • isPassenger

      public boolean isPassenger(org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      isPassenger in interface org.cloudburstmc.api.entity.Entity
    • isControlling

      public boolean isControlling(org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      isControlling in interface org.cloudburstmc.api.entity.Entity
    • hasControllingPassenger

      public boolean hasControllingPassenger()
      Specified by:
      hasControllingPassenger in interface org.cloudburstmc.api.entity.Entity
    • getVehicle

      public org.cloudburstmc.api.entity.Entity getVehicle()
      Specified by:
      getVehicle in interface org.cloudburstmc.api.entity.Entity
    • getEffects

      public Map<org.cloudburstmc.api.potion.EffectType,​org.cloudburstmc.api.potion.Effect> getEffects()
      Specified by:
      getEffects in interface org.cloudburstmc.api.entity.Entity
    • removeAllEffects

      public void removeAllEffects()
      Specified by:
      removeAllEffects in interface org.cloudburstmc.api.entity.Entity
    • removeEffect

      @Deprecated public void removeEffect(int effectId)
      Deprecated.
      Specified by:
      removeEffect in interface org.cloudburstmc.api.entity.Entity
    • removeEffect

      public void removeEffect(org.cloudburstmc.api.potion.EffectType type)
      Specified by:
      removeEffect in interface org.cloudburstmc.api.entity.Entity
    • getEffect

      @Deprecated public org.cloudburstmc.api.potion.Effect getEffect(int effectId)
      Deprecated.
      Specified by:
      getEffect in interface org.cloudburstmc.api.entity.Entity
    • getEffect

      @Nullable public CloudEffect getEffect(org.cloudburstmc.api.potion.EffectType type)
      Specified by:
      getEffect in interface org.cloudburstmc.api.entity.Entity
    • hasEffect

      @Deprecated public boolean hasEffect(int effectId)
      Deprecated.
      Specified by:
      hasEffect in interface org.cloudburstmc.api.entity.Entity
    • hasEffect

      public boolean hasEffect(org.cloudburstmc.api.potion.EffectType type)
      Specified by:
      hasEffect in interface org.cloudburstmc.api.entity.Entity
    • addEffect

      public void addEffect(org.cloudburstmc.api.potion.Effect effect)
      Specified by:
      addEffect in interface org.cloudburstmc.api.entity.Entity
    • recalculateBoundingBox

      public void recalculateBoundingBox()
    • recalculateEffectColor

      protected void recalculateEffectColor()
    • init

      protected final void init(org.cloudburstmc.api.level.Location location)
    • getTag

      public com.nukkitx.nbt.NbtMap getTag()
    • getName

      public String getName()
      Specified by:
      getName in interface org.cloudburstmc.api.entity.Entity
    • spawnTo

      public void spawnTo(org.cloudburstmc.api.player.Player player)
      Specified by:
      spawnTo in interface org.cloudburstmc.api.entity.Entity
    • spawnTo

      public void spawnTo(CloudPlayer player)
    • createAddEntityPacket

      protected com.nukkitx.protocol.bedrock.BedrockPacket createAddEntityPacket()
    • getViewers

      public Set<CloudPlayer> getViewers()
      Specified by:
      getViewers in interface org.cloudburstmc.api.entity.Entity
    • sendPotionEffects

      public void sendPotionEffects(CloudPlayer player)
    • sendData

      public void sendData(CloudPlayer player)
    • sendData

      public void sendData(CloudPlayer player, com.nukkitx.protocol.bedrock.data.entity.EntityData... data)
    • sendFlags

      public void sendFlags(CloudPlayer player)
    • despawnFrom

      public void despawnFrom(org.cloudburstmc.api.player.Player player)
      Specified by:
      despawnFrom in interface org.cloudburstmc.api.entity.Entity
    • despawnFrom

      public void despawnFrom(CloudPlayer player)
    • attack

      public boolean attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source)
      Specified by:
      attack in interface org.cloudburstmc.api.entity.Entity
    • attack

      public boolean attack(float damage)
      Specified by:
      attack in interface org.cloudburstmc.api.entity.Entity
    • heal

      public void heal(org.cloudburstmc.api.event.entity.EntityRegainHealthEvent source)
      Specified by:
      heal in interface org.cloudburstmc.api.entity.Entity
    • heal

      public void heal(float amount)
      Specified by:
      heal in interface org.cloudburstmc.api.entity.Entity
    • getHealth

      public float getHealth()
      Specified by:
      getHealth in interface org.cloudburstmc.api.entity.Entity
    • setHealth

      public void setHealth(float health)
      Specified by:
      setHealth in interface org.cloudburstmc.api.entity.Entity
    • isAlive

      public boolean isAlive()
      Specified by:
      isAlive in interface org.cloudburstmc.api.entity.Entity
    • isClosed

      public boolean isClosed()
      Specified by:
      isClosed in interface org.cloudburstmc.api.entity.Entity
    • getLastDamageCause

      public org.cloudburstmc.api.event.entity.EntityDamageEvent getLastDamageCause()
      Specified by:
      getLastDamageCause in interface org.cloudburstmc.api.entity.Entity
    • setLastDamageCause

      public void setLastDamageCause(org.cloudburstmc.api.event.entity.EntityDamageEvent type)
    • getMaxHealth

      public int getMaxHealth()
      Specified by:
      getMaxHealth in interface org.cloudburstmc.api.entity.Entity
    • setMaxHealth

      public void setMaxHealth(int maxHealth)
      Specified by:
      setMaxHealth in interface org.cloudburstmc.api.entity.Entity
    • canCollideWith

      public boolean canCollideWith(org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      canCollideWith in interface org.cloudburstmc.api.entity.Entity
    • checkObstruction

      protected boolean checkObstruction(com.nukkitx.math.vector.Vector3f pos)
    • checkObstruction

      protected boolean checkObstruction(float x, float y, float z)
    • entityBaseTick

      public boolean entityBaseTick()
    • entityBaseTick

      public boolean entityBaseTick(int tickDiff)
    • updateMovement

      public void updateMovement()
    • addMovement

      public void addMovement(double x, double y, double z, double yaw, double pitch, double headYaw)
    • addMotion

      public void addMotion(com.nukkitx.math.vector.Vector3f motion)
    • getDirectionVector

      public com.nukkitx.math.vector.Vector3f getDirectionVector()
      Specified by:
      getDirectionVector in interface org.cloudburstmc.api.entity.Entity
    • getDirectionPlane

      public com.nukkitx.math.vector.Vector2f getDirectionPlane()
      Specified by:
      getDirectionPlane in interface org.cloudburstmc.api.entity.Entity
    • getHorizontalDirection

      public org.cloudburstmc.api.util.Direction getHorizontalDirection()
      Specified by:
      getHorizontalDirection in interface org.cloudburstmc.api.entity.Entity
    • getCardinalDirection

      public org.cloudburstmc.api.util.data.CardinalDirection getCardinalDirection()
    • onUpdate

      public boolean onUpdate(int currentTick)
      Specified by:
      onUpdate in interface org.cloudburstmc.api.entity.Entity
    • mount

      public boolean mount(org.cloudburstmc.api.entity.Entity vehicle, org.cloudburstmc.api.util.data.MountType mode)
      Mount or dismounts an Entity from a/into vehicle
      Specified by:
      mount in interface org.cloudburstmc.api.entity.Entity
      Parameters:
      vehicle - The target Entity
      Returns:
      true if the mounting successful
    • dismount

      public boolean dismount(org.cloudburstmc.api.entity.Entity vehicle)
      Specified by:
      dismount in interface org.cloudburstmc.api.entity.Entity
    • onMount

      public void onMount(org.cloudburstmc.api.entity.Entity passenger)
      Specified by:
      onMount in interface org.cloudburstmc.api.entity.Entity
    • onDismount

      public void onDismount(org.cloudburstmc.api.entity.Entity passenger)
      Specified by:
      onDismount in interface org.cloudburstmc.api.entity.Entity
    • broadcastLinkPacket

      protected void broadcastLinkPacket(org.cloudburstmc.api.entity.Entity vehicle, com.nukkitx.protocol.bedrock.data.entity.EntityLinkData.Type type)
    • updatePassengers

      public void updatePassengers()
    • updatePassengerPosition

      protected void updatePassengerPosition(org.cloudburstmc.api.entity.Entity passenger)
    • getSeatPosition

      public com.nukkitx.math.vector.Vector3f getSeatPosition()
      Specified by:
      getSeatPosition in interface org.cloudburstmc.api.entity.Entity
    • setSeatPosition

      public void setSeatPosition(com.nukkitx.math.vector.Vector3f pos)
      Specified by:
      setSeatPosition in interface org.cloudburstmc.api.entity.Entity
    • getMountedOffset

      public com.nukkitx.math.vector.Vector3f getMountedOffset(org.cloudburstmc.api.entity.Entity entity)
    • scheduleUpdate

      public final void scheduleUpdate()
    • getNoDamageTicks

      public int getNoDamageTicks()
      Specified by:
      getNoDamageTicks in interface org.cloudburstmc.api.entity.Entity
    • setNoDamageTicks

      public void setNoDamageTicks(int noDamageTicks)
      Specified by:
      setNoDamageTicks in interface org.cloudburstmc.api.entity.Entity
    • getFireTicks

      public int getFireTicks()
      Specified by:
      getFireTicks in interface org.cloudburstmc.api.entity.Entity
    • setOnFire

      public void setOnFire(int seconds)
      Specified by:
      setOnFire in interface org.cloudburstmc.api.entity.Entity
    • getAbsorption

      public float getAbsorption()
      Specified by:
      getAbsorption in interface org.cloudburstmc.api.entity.Entity
    • setAbsorption

      public void setAbsorption(float absorption)
      Specified by:
      setAbsorption in interface org.cloudburstmc.api.entity.Entity
    • getDirection

      public org.cloudburstmc.api.util.Direction getDirection()
      Specified by:
      getDirection in interface org.cloudburstmc.api.entity.Entity
    • extinguish

      public void extinguish()
      Specified by:
      extinguish in interface org.cloudburstmc.api.entity.Entity
    • canTriggerWalking

      public boolean canTriggerWalking()
    • getHighestPosition

      public float getHighestPosition()
      Specified by:
      getHighestPosition in interface org.cloudburstmc.api.entity.Entity
    • setHighestPosition

      public void setHighestPosition(float highestPosition)
      Specified by:
      setHighestPosition in interface org.cloudburstmc.api.entity.Entity
    • setFallDistance

      public void setFallDistance(float fallDistance)
    • resetFallDistance

      public void resetFallDistance()
      Specified by:
      resetFallDistance in interface org.cloudburstmc.api.entity.Entity
    • updateFallState

      protected void updateFallState(boolean onGround)
    • getBoundingBox

      public org.cloudburstmc.api.util.AxisAlignedBB getBoundingBox()
      Specified by:
      getBoundingBox in interface org.cloudburstmc.api.entity.Entity
    • fall

      public void fall(float fallDistance)
      Specified by:
      fall in interface org.cloudburstmc.api.entity.Entity
    • handleLavaMovement

      public void handleLavaMovement()
    • onCollideWithPlayer

      public void onCollideWithPlayer(EntityHuman entityPlayer)
    • onEntityCollision

      public void onEntityCollision(org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      onEntityCollision in interface org.cloudburstmc.api.entity.Entity
    • onStruckByLightning

      public void onStruckByLightning(org.cloudburstmc.api.entity.misc.LightningBolt lightningBolt)
      Specified by:
      onStruckByLightning in interface org.cloudburstmc.api.entity.Entity
    • onInteract

      public boolean onInteract(org.cloudburstmc.api.player.Player player, org.cloudburstmc.api.item.ItemStack item, com.nukkitx.math.vector.Vector3f clickedPos)
      Specified by:
      onInteract in interface org.cloudburstmc.api.entity.Entity
    • onInteract

      public boolean onInteract(org.cloudburstmc.api.player.Player player, org.cloudburstmc.api.item.ItemStack item)
    • switchLevel

      protected boolean switchLevel(CloudLevel targetLevel)
    • getPosition

      public com.nukkitx.math.vector.Vector3f getPosition()
      Specified by:
      getPosition in interface org.cloudburstmc.api.entity.Entity
    • getLocation

      public org.cloudburstmc.api.level.Location getLocation()
      Specified by:
      getLocation in interface org.cloudburstmc.api.entity.Entity
    • isInsideOfWater

      public boolean isInsideOfWater()
    • isInsideOfSolid

      public boolean isInsideOfSolid()
    • isInsideOfFire

      public boolean isInsideOfFire()
    • fastMove

      public boolean fastMove(float dx, float dy, float dz)
    • move

      public boolean move(com.nukkitx.math.vector.Vector3f d)
    • move

      public boolean move(float dx, float dy, float dz)
    • checkGroundState

      protected void checkGroundState(double movX, double movY, double movZ, double dx, double dy, double dz)
    • getBlocksAround

      public List<org.cloudburstmc.api.block.Block> getBlocksAround()
    • getCollisionBlocks

      public List<org.cloudburstmc.api.block.Block> getCollisionBlocks()
    • canBeMovedByCurrents

      public boolean canBeMovedByCurrents()
      Returns whether this entity can be moved by currents in liquids.
      Specified by:
      canBeMovedByCurrents in interface org.cloudburstmc.api.entity.Entity
      Returns:
      boolean
    • checkBlockCollision

      protected void checkBlockCollision()
    • setPositionAndRotation

      public boolean setPositionAndRotation(com.nukkitx.math.vector.Vector3f pos, float yaw, float pitch)
      Specified by:
      setPositionAndRotation in interface org.cloudburstmc.api.entity.Entity
    • setRotation

      public void setRotation(float yaw, float pitch)
      Specified by:
      setRotation in interface org.cloudburstmc.api.entity.Entity
    • canTriggerPressurePlate

      public boolean canTriggerPressurePlate()
      Specified by:
      canTriggerPressurePlate in interface org.cloudburstmc.api.entity.Entity
    • canPassThrough

      public boolean canPassThrough()
      Specified by:
      canPassThrough in interface org.cloudburstmc.api.entity.Entity
    • checkChunks

      protected void checkChunks()
    • setPosition

      public boolean setPosition(com.nukkitx.math.vector.Vector3f pos)
      Specified by:
      setPosition in interface org.cloudburstmc.api.entity.Entity
    • getMotion

      public com.nukkitx.math.vector.Vector3f getMotion()
      Specified by:
      getMotion in interface org.cloudburstmc.api.entity.Entity
    • setMotion

      public boolean setMotion(com.nukkitx.math.vector.Vector3f motion)
      Specified by:
      setMotion in interface org.cloudburstmc.api.entity.Entity
    • isOnGround

      public boolean isOnGround()
      Specified by:
      isOnGround in interface org.cloudburstmc.api.entity.Entity
    • setOnGround

      public void setOnGround(boolean onGround)
      Specified by:
      setOnGround in interface org.cloudburstmc.api.entity.Entity
    • kill

      public void kill()
      Specified by:
      kill in interface org.cloudburstmc.api.entity.Entity
    • teleport

      public boolean teleport(com.nukkitx.math.vector.Vector3f pos)
      Specified by:
      teleport in interface org.cloudburstmc.api.entity.Entity
    • teleport

      public boolean teleport(com.nukkitx.math.vector.Vector3f pos, org.cloudburstmc.api.event.player.PlayerTeleportEvent.TeleportCause cause)
      Specified by:
      teleport in interface org.cloudburstmc.api.entity.Entity
    • teleport

      public boolean teleport(org.cloudburstmc.api.level.Location location)
      Specified by:
      teleport in interface org.cloudburstmc.api.entity.Entity
    • teleport

      public boolean teleport(org.cloudburstmc.api.level.Location location, org.cloudburstmc.api.event.player.PlayerTeleportEvent.TeleportCause cause)
      Specified by:
      teleport in interface org.cloudburstmc.api.entity.Entity
    • getUniqueId

      public long getUniqueId()
      Specified by:
      getUniqueId in interface org.cloudburstmc.api.entity.Entity
    • getRuntimeId

      public long getRuntimeId()
      Specified by:
      getRuntimeId in interface org.cloudburstmc.api.entity.Entity
    • respawnToAll

      public void respawnToAll()
    • spawnToAll

      public void spawnToAll()
      Specified by:
      spawnToAll in interface org.cloudburstmc.api.entity.Entity
    • despawnFromAll

      public void despawnFromAll()
      Specified by:
      despawnFromAll in interface org.cloudburstmc.api.entity.Entity
    • close

      public void close()
      Specified by:
      close in interface org.cloudburstmc.api.entity.Entity
    • getOwner

      @Nullable public org.cloudburstmc.api.entity.Entity getOwner()
      Specified by:
      getOwner in interface org.cloudburstmc.api.entity.Entity
    • setOwner

      public void setOwner(@Nullable org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      setOwner in interface org.cloudburstmc.api.entity.Entity
    • getServer

      public CloudServer getServer()
      Specified by:
      getServer in interface org.cloudburstmc.api.entity.Entity
    • toString

      public String toString()
      Overrides:
      toString in class Object