position,blockType,direction,以及他们的操作函数
Position
class Coordinate {
constructor(x, y, z) {
this.x = x;
this.y = y;
this.z = z;
}
}
class Position {
constructor(coordinate, tickingArea) {
this.coordinate = coordinate;
this.tickingArea = tickingArea;
}
}
BlockType
class BlockType {
constructor(blockIdentifier, blockState) {
this.blockIdentifier = blockIdentifier;
this.blockState = blockState;
}
}Direction
最后更新于