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 UnaryOperator<net.minecraft.nbt.CompoundTag> itemProcessor(String tagKey) static net.minecraft.nbt.CompoundTagprocess(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.entity.BlockEntity blockEntity, net.minecraft.nbt.CompoundTag compound, boolean survival) static booleanstatic booleantextComponentHasClickEvent(net.minecraft.network.chat.Component component)
-
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
-
textComponentHasClickEvent
-
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)
-