Skip to main content
world.getBlockAt(...) 获取。值对象,不跟随世界变化。

字段 / getter(两种写法都可用)

String  type / getType()               // "minecraft:stone"
String  name / getName()               // display name
int     variant / getVariant()         // 全局 block-state id
double  height / getHeight()
double  width  / getWidth()
double  length / getLength()
double  x / y / z   (getX/Y/Z)

方法

Vec3    getPosition()
boolean isAir()
boolean isSolid()
net.minecraft.world.level.block.state.BlockState raw()