Class RemovableDataComponents

java.lang.Object
net.frozenblock.lib.item.api.removable.RemovableDataComponents

public class RemovableDataComponents extends Object
  • Constructor Details

    • RemovableDataComponents

      public RemovableDataComponents()
  • Method Details

    • register

      public static void register(net.minecraft.core.component.DataComponentType<?> component, RemovalPredicate removalPredicate, boolean removeOnStackMerge)
    • canRemoveComponent

      public static boolean canRemoveComponent(net.minecraft.core.component.DataComponentType<?> component, net.minecraft.world.level.Level level, net.minecraft.world.entity.Entity entity, int slot, boolean selected)
    • shouldRemoveComponentOnStackMerge

      public static boolean shouldRemoveComponentOnStackMerge(net.minecraft.core.component.DataComponentType<?> component)
    • keys

      public static Set<net.minecraft.core.Holder<net.minecraft.core.component.DataComponentType<?>>> keys()