Package com.minecolonies.api.util
Class NBTUtils
java.lang.Object
com.minecolonies.api.util.NBTUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.core.BlockPosreadBlockPos(@NotNull net.minecraft.nbt.CompoundTag compound, @NotNull String name) static net.minecraft.core.BlockPosreadBlockPos(@NotNull net.minecraft.nbt.Tag compound) static Stream<net.minecraft.nbt.Tag> streamBase(net.minecraft.nbt.ListTag list) static Stream<net.minecraft.nbt.CompoundTag> streamCompound(net.minecraft.nbt.ListTag list) static Collector<net.minecraft.nbt.Tag, ?, net.minecraft.nbt.ListTag> static net.minecraft.nbt.TagwriteBlockPos(@NotNull net.minecraft.core.BlockPos pos)
-
Constructor Details
-
NBTUtils
public NBTUtils()
-
-
Method Details
-
streamCompound
-
streamBase
-
toListNBT
-
readBlockPos
public static net.minecraft.core.BlockPos readBlockPos(@NotNull @NotNull net.minecraft.nbt.CompoundTag compound, @NotNull @NotNull String name) -
readBlockPos
public static net.minecraft.core.BlockPos readBlockPos(@NotNull @NotNull net.minecraft.nbt.Tag compound) -
writeBlockPos
public static net.minecraft.nbt.Tag writeBlockPos(@NotNull @NotNull net.minecraft.core.BlockPos pos)
-