BlockSource.java
net.minecraft.core.dispenser.BlockSource
信息
- 全限定名:net.minecraft.core.dispenser.BlockSource
- 类型:public record
- 包:net.minecraft.core.dispenser
- 源码路径:src/main/java/net/minecraft/core/dispenser/BlockSource.java
- 起始行号:L9
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
public Vec3 center() @ L10
- 方法名:center
- 源码定位:L10
- 返回类型:Vec3
- 修饰符:public
参数:
- 无
说明:
TODO
代码
public record BlockSource(ServerLevel level, BlockPos pos, BlockState state, DispenserBlockEntity blockEntity) {
public Vec3 center() {
return this.pos.getCenter();
}
}引用的其他类
- Vec3
- 引用位置:
返回值
- 引用位置: