@occultus/entity-api
Version:
Star Tenon entity api and utils
28 lines (26 loc) • 569 B
text/typescript
import { Block, Dimension, Entity, ScoreboardObjective, Vector3 } from "@minecraft/server";
/**
* 方块实体数据
*/
export interface BlockEntityData {
/**
* 方块实体对应的方块
*/
readonly block: Block;
/**
* 方块实体本身
*/
readonly entity: Entity;
/**
* 方块实体所在维度
*/
readonly dimension: Dimension;
/**
* 方块实体所在位置
*/
readonly location: Vector3;
/**
* 方块实体对应的计分板
*/
readonly scoreboardObjective?: ScoreboardObjective;
}