接口 DataSource

所有已知实现类:
BlockDataSource, EntityDataSource, StorageDataSource
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface DataSource
  • 方法详细资料

    • getData

      Stream<CompoundTag> getData(CommandSourceStack pSource) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      抛出:
      com.mojang.brigadier.exceptions.CommandSyntaxException