Class NBTHelper

java.lang.Object
team.lodestar.lodestone.helpers.NBTHelper

public class NBTHelper extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String... filters)
     
    static net.minecraft.nbt.CompoundTag
    filterTag(net.minecraft.nbt.CompoundTag orig, NBTHelper.TagFilter filter)
     
    static net.minecraft.core.BlockPos
    loadBlockPos(net.minecraft.nbt.CompoundTag tag)
    Loads a block position from nbt.
    static net.minecraft.core.BlockPos
    loadBlockPos(net.minecraft.nbt.CompoundTag tag, String extra)
    Loads a block position from nbt with extra text as input.
    static net.minecraft.nbt.CompoundTag
    removeTags(net.minecraft.nbt.CompoundTag tag, NBTHelper.TagFilter filter)
     
    static void
    saveBlockPos(net.minecraft.nbt.CompoundTag compoundNBT, net.minecraft.core.BlockPos pos)
    Saves a block position to nbt.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static NBTHelper.TagFilter create(String... filters)