Package net.createmod.catnip.utility
Class NBTProcessors
java.lang.Object
net.createmod.catnip.utility.NBTProcessors
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddProcessor(net.minecraft.world.level.block.entity.BlockEntityType<?> type, UnaryOperator<net.minecraft.nbt.CompoundTag> processor) static voidaddSurvivalProcessor(net.minecraft.world.level.block.entity.BlockEntityType<?> type, UnaryOperator<net.minecraft.nbt.CompoundTag> processor) static booleanisUnsafeItemNBTKey(String name) static UnaryOperator<net.minecraft.nbt.CompoundTag>itemProcessor(String tagKey) static net.minecraft.nbt.CompoundTagprocess(net.minecraft.world.level.block.entity.BlockEntity blockEntity, net.minecraft.nbt.CompoundTag compound, boolean survival) static booleanstatic net.minecraft.world.item.ItemStackwithUnsafeNBTDiscarded(net.minecraft.world.item.ItemStack stack)
-
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
-
withUnsafeNBTDiscarded
public static net.minecraft.world.item.ItemStack withUnsafeNBTDiscarded(net.minecraft.world.item.ItemStack stack) -
isUnsafeItemNBTKey
-
textComponentHasClickEvent
-
process
@Nullable public static net.minecraft.nbt.CompoundTag process(net.minecraft.world.level.block.entity.BlockEntity blockEntity, @Nullable net.minecraft.nbt.CompoundTag compound, boolean survival)
-