Interface DataSource
- All Known Implementing Classes:
BlockDataSource,EntityDataSource,StorageDataSource
public interface DataSource
-
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends DataSource> codec()getData(CommandSourceStack pSource)
-
Method Details
-
getData
Stream<CompoundTag> getData(CommandSourceStack pSource) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
codec
com.mojang.serialization.MapCodec<? extends DataSource> codec()
-