PlainTextFunction.java

net.minecraft.commands.functions.PlainTextFunction

信息

  • 全限定名:net.minecraft.commands.functions.PlainTextFunction
  • 类型:public record
  • 包:net.minecraft.commands.functions
  • 源码路径:src/main/java/net/minecraft/commands/functions/PlainTextFunction.java
  • 起始行号:L11
  • 实现:CommandFunction, InstantiatedFunction
  • 职责:

    TODO

字段/常量

内部类/嵌套类型

构造器

方法

下面的方法块按源码顺序生成。

public InstantiatedFunction<T> instantiate(CompoundTag arguments, CommandDispatcher<T> dispatcher) @ L12

  • 方法名:instantiate
  • 源码定位:L12
  • 返回类型:InstantiatedFunction
  • 修饰符:public

参数:

  • arguments: CompoundTag
  • dispatcher: CommandDispatcher

说明:

TODO

代码

public record PlainTextFunction<T>(Identifier id, List<UnboundEntryAction<T>> entries) implements CommandFunction<T>, InstantiatedFunction<T> {
    @Override
    public InstantiatedFunction<T> instantiate(@Nullable CompoundTag arguments, CommandDispatcher<T> dispatcher) throws FunctionInstantiationException {
        return this;
    }
}

引用的其他类