Package team.lodestar.lodestone.helpers
Class NBTHelper
java.lang.Object
team.lodestar.lodestone.helpers.NBTHelper
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NBTHelper.TagFilterstatic net.minecraft.nbt.CompoundTagfilterTag(net.minecraft.nbt.CompoundTag orig, NBTHelper.TagFilter filter) static net.minecraft.core.BlockPosloadBlockPos(net.minecraft.nbt.CompoundTag tag) Loads a block position from nbt.static net.minecraft.core.BlockPosloadBlockPos(net.minecraft.nbt.CompoundTag tag, String extra) Loads a block position from nbt with extra text as input.static net.minecraft.nbt.CompoundTagremoveTags(net.minecraft.nbt.CompoundTag tag, NBTHelper.TagFilter filter) static voidsaveBlockPos(net.minecraft.nbt.CompoundTag compoundNBT, net.minecraft.core.BlockPos pos) Saves a block position to nbt.static voidsaveBlockPos(net.minecraft.nbt.CompoundTag compoundNBT, net.minecraft.core.BlockPos pos, String extra) Saves a block position to nbt with extra text to differentiate it.
-
Constructor Details
-
NBTHelper
public NBTHelper()
-
-
Method Details
-
saveBlockPos
public static void saveBlockPos(net.minecraft.nbt.CompoundTag compoundNBT, net.minecraft.core.BlockPos pos) Saves a block position to nbt. -
saveBlockPos
public static void saveBlockPos(net.minecraft.nbt.CompoundTag compoundNBT, net.minecraft.core.BlockPos pos, String extra) Saves a block position to nbt with extra text to differentiate it. -
loadBlockPos
public static net.minecraft.core.BlockPos loadBlockPos(net.minecraft.nbt.CompoundTag tag) Loads a block position from nbt. -
loadBlockPos
public static net.minecraft.core.BlockPos loadBlockPos(net.minecraft.nbt.CompoundTag tag, String extra) Loads a block position from nbt with extra text as input. -
filterTag
public static net.minecraft.nbt.CompoundTag filterTag(net.minecraft.nbt.CompoundTag orig, NBTHelper.TagFilter filter) -
removeTags
public static net.minecraft.nbt.CompoundTag removeTags(net.minecraft.nbt.CompoundTag tag, NBTHelper.TagFilter filter) -
create
-