Coordinates.java
net.minecraft.commands.arguments.coordinates.Coordinates
信息
- 全限定名:net.minecraft.commands.arguments.coordinates.Coordinates
- 类型:public interface
- 包:net.minecraft.commands.arguments.coordinates
- 源码路径:src/main/java/net/minecraft/commands/arguments/coordinates/Coordinates.java
- 起始行号:L8
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
Vec3 getPosition(CommandSourceStack sender) @ L9
- 方法名:getPosition
- 源码定位:L9
- 返回类型:Vec3
- 修饰符:package-private
参数:
- sender: CommandSourceStack
说明:
TODO
Vec2 getRotation(CommandSourceStack sender) @ L11
- 方法名:getRotation
- 源码定位:L11
- 返回类型:Vec2
- 修饰符:package-private
参数:
- sender: CommandSourceStack
说明:
TODO
default BlockPos getBlockPos(CommandSourceStack sender) @ L13
- 方法名:getBlockPos
- 源码定位:L13
- 返回类型:BlockPos
- 修饰符:default
参数:
- sender: CommandSourceStack
说明:
TODO
boolean isXRelative() @ L17
- 方法名:isXRelative
- 源码定位:L17
- 返回类型:boolean
- 修饰符:package-private
参数:
- 无
说明:
TODO
boolean isYRelative() @ L19
- 方法名:isYRelative
- 源码定位:L19
- 返回类型:boolean
- 修饰符:package-private
参数:
- 无
说明:
TODO
boolean isZRelative() @ L21
- 方法名:isZRelative
- 源码定位:L21
- 返回类型:boolean
- 修饰符:package-private
参数:
- 无
说明:
TODO
代码
public interface Coordinates {
Vec3 getPosition(CommandSourceStack sender);
Vec2 getRotation(CommandSourceStack sender);
default BlockPos getBlockPos(CommandSourceStack sender) {
return BlockPos.containing(this.getPosition(sender));
}
boolean isXRelative();
boolean isYRelative();
boolean isZRelative();
}引用的其他类
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
方法调用/返回值 - 关联成员:
BlockPos.containing()
- 引用位置:
-
- 引用位置:
返回值
- 引用位置:
-
- 引用位置:
返回值
- 引用位置: