Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/replcraft/lib/world/entity.ts>Entity

A library to control special structures on the ReplCraft Minecraft server
Latest
class Entity
implements EntityOptions
import { Entity } from "https://deno.land/x/replcraft@v1.1.0/lib/world/entity.ts";

Constructors

new
Entity(unnamed 0: EntityOptions)

Properties

readonly
health: number

Current health of the entity

readonly
location: Location

Location of the entity

readonly
maxHealth: number

Maximum health of the entity

readonly
name: string

Name of the entity

readonly
player: Player | null

Player this entity relates to, if the entity is a player

readonly
type: string

Type of the entity

Static Methods

from(unnamed 0: EntityData): Entity

Create a new entity instance from a ReplCraft-usable entity format.