TemplateRotationArgument.java
net.minecraft.commands.arguments.TemplateRotationArgument
信息
- 全限定名:net.minecraft.commands.arguments.TemplateRotationArgument
- 类型:public class
- 包:net.minecraft.commands.arguments
- 源码路径:src/main/java/net/minecraft/commands/arguments/TemplateRotationArgument.java
- 起始行号:L7
- 继承:StringRepresentableArgument
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
private TemplateRotationArgument() @ L8
- 构造器名:TemplateRotationArgument
- 源码定位:L8
- 修饰符:private
参数:
- 无
说明:
TODO
方法
下面的方法块按源码顺序生成。
public static TemplateRotationArgument templateRotation() @ L12
- 方法名:templateRotation
- 源码定位:L12
- 返回类型:TemplateRotationArgument
- 修饰符:public static
参数:
- 无
说明:
TODO
public static Rotation getRotation(CommandContext<CommandSourceStack> context, String name) @ L16
- 方法名:getRotation
- 源码定位:L16
- 返回类型:Rotation
- 修饰符:public static
参数:
- context: CommandContext
- name: String
说明:
TODO
代码
public class TemplateRotationArgument extends StringRepresentableArgument<Rotation> {
private TemplateRotationArgument() {
super(Rotation.CODEC, Rotation::values);
}
public static TemplateRotationArgument templateRotation() {
return new TemplateRotationArgument();
}
public static Rotation getRotation(CommandContext<CommandSourceStack> context, String name) {
return context.getArgument(name, Rotation.class);
}
}引用的其他类
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
继承
- 引用位置:
-
- 引用位置:
返回值
- 引用位置: