Class NBTProcessors

java.lang.Object
net.createmod.catnip.nbt.NBTProcessors

public final class NBTProcessors extends Object
  • Method Details

    • addProcessor

      public static void addProcessor(net.minecraft.world.level.block.entity.BlockEntityType<?> type, UnaryOperator<net.minecraft.nbt.CompoundTag> processor)
    • addSurvivalProcessor

      public static void addSurvivalProcessor(net.minecraft.world.level.block.entity.BlockEntityType<?> type, UnaryOperator<net.minecraft.nbt.CompoundTag> processor)
    • itemProcessor

      public static UnaryOperator<net.minecraft.nbt.CompoundTag> itemProcessor(String tagKey)
    • withUnsafeNBTDiscarded

      public static net.minecraft.world.item.ItemStack withUnsafeNBTDiscarded(net.minecraft.world.item.ItemStack stack)
    • isUnsafeItemNBTKey

      public static boolean isUnsafeItemNBTKey(String name)
    • textComponentHasClickEvent

      public static boolean textComponentHasClickEvent(String json)
    • textComponentHasClickEvent

      public static boolean textComponentHasClickEvent(net.minecraft.network.chat.Component component)
    • process

      @Nullable public static net.minecraft.nbt.CompoundTag process(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntity blockEntity, @Nullable net.minecraft.nbt.CompoundTag compound, boolean survival)