Player (Class)
From 8x9craft
Revision as of 04:39, 14 July 2017 by N.yamamoto (talk | contribs)
プレイヤーにつていの情報を保持します。
フィールド | 説明 |
---|---|
name: string | プレイヤー名 |
readonly position: BlockPos | プレイヤーの位置を取得します。 |
readonly facing: Facing | プレイヤーの向きを取得します。 |
function distance(pos: BlockPos): number | プレーヤーの位置までの距離を取得します。 |