跳转至

CompoundBlockVolume

文档版本:1.21.0.24

CompoundBlockVolume类。script_api.minecraft/server.compoundblockvolume.description

属性

capacity
read-only capacity: uint64;
items
read-only items: CompoundBlockVolumeItem[];
itemsAbsolute
read-only itemsAbsolute: CompoundBlockVolumeItem[];
volumeCount
read-only volumeCount: uint64;

方法

clear

script_api.minecraft/server.compoundblockvolume.clear.description

clear(): void
constructor

script_api.minecraft/server.compoundblockvolume.constructor.description

new constructor(origin?: Vector3): CompoundBlockVolume
getBlockLocationIterator

script_api.minecraft/server.compoundblockvolume.getblocklocationiterator.description

getBlockLocationIterator(): BlockLocationIterator
getBoundingBox

script_api.minecraft/server.compoundblockvolume.getboundingbox.description

getBoundingBox(): BoundingBox
getMax

script_api.minecraft/server.compoundblockvolume.getmax.description

getMax(): Vector3
getMin

script_api.minecraft/server.compoundblockvolume.getmin.description

getMin(): Vector3
getOrigin

script_api.minecraft/server.compoundblockvolume.getorigin.description

getOrigin(): Vector3
isEmpty

script_api.minecraft/server.compoundblockvolume.isempty.description

isEmpty(): boolean
isInside

script_api.minecraft/server.compoundblockvolume.isinside.description

isInside(worldLocation: Vector3): boolean
peekLastVolume

script_api.minecraft/server.compoundblockvolume.peeklastvolume.description

peekLastVolume(forceRelativity?: CompoundBlockVolumePositionRelativity): CompoundBlockVolumeItem | undefined
popVolume

script_api.minecraft/server.compoundblockvolume.popvolume.description

popVolume(): boolean
pushVolume

script_api.minecraft/server.compoundblockvolume.pushvolume.description

pushVolume(item: CompoundBlockVolumeItem): void
replaceOrAddLastVolume

script_api.minecraft/server.compoundblockvolume.replaceoraddlastvolume.description

replaceOrAddLastVolume(item: CompoundBlockVolumeItem): boolean
setOrigin

script_api.minecraft/server.compoundblockvolume.setorigin.description

setOrigin(position: Vector3, preserveExistingVolumes?: boolean): void
translateOrigin

script_api.minecraft/server.compoundblockvolume.translateorigin.description

translateOrigin(delta: Vector3, preserveExistingVolumes?: boolean): void