Class ExpandAdventureModePredicate

java.lang.Object
com.blamejared.crafttweaker.natives.item.component.ExpandAdventureModePredicate

@ZenRegister public class ExpandAdventureModePredicate extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.item.AdventureModePredicate
    of(List<net.minecraft.advancements.critereon.BlockPredicate> predicates, boolean showInTooltip)
    Creates a new AdventureModePredicate with the given predicates and showInTooltip flag.
    static net.minecraft.world.item.AdventureModePredicate
    ofBlocks(List<net.minecraft.world.level.block.Block> predicates, boolean showInTooltip)
    Creates a new AdventureModePredicate with the given blocks and showInTooltip flag.
    static net.minecraft.world.item.AdventureModePredicate
    ofTags(List<KnownTag<net.minecraft.world.level.block.Block>> predicates, boolean showInTooltip)
    Creates a new AdventureModePredicate with the given tags and showInTooltip flag.
    static boolean
    showInTooltip(net.minecraft.world.item.AdventureModePredicate internal)
    Gets whether the predicate should show in the tooltip.
    static net.minecraft.world.item.AdventureModePredicate
    withTooltip(net.minecraft.world.item.AdventureModePredicate internal, boolean tooltip)
    Sets whether the predicate should show in the tooltip.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandAdventureModePredicate

      public ExpandAdventureModePredicate()
  • Method Details

    • of

      public static net.minecraft.world.item.AdventureModePredicate of(List<net.minecraft.advancements.critereon.BlockPredicate> predicates, boolean showInTooltip)
      Creates a new AdventureModePredicate with the given predicates and showInTooltip flag.
      Parameters:
      predicates - The list of block predicates.
      showInTooltip - Whether the predicate should show in the tooltip.
      Returns:
      The new AdventureModePredicate.
    • ofBlocks

      public static net.minecraft.world.item.AdventureModePredicate ofBlocks(List<net.minecraft.world.level.block.Block> predicates, boolean showInTooltip)
      Creates a new AdventureModePredicate with the given blocks and showInTooltip flag.
      Parameters:
      predicates - The list of blocks.
      showInTooltip - Whether the predicate should show in the tooltip.
      Returns:
      The new AdventureModePredicate.
    • ofTags

      public static net.minecraft.world.item.AdventureModePredicate ofTags(List<KnownTag<net.minecraft.world.level.block.Block>> predicates, boolean showInTooltip)
      Creates a new AdventureModePredicate with the given tags and showInTooltip flag.
      Parameters:
      predicates - The list of tags.
      showInTooltip - Whether the predicate should show in the tooltip.
      Returns:
      The new AdventureModePredicate.
    • showInTooltip

      public static boolean showInTooltip(net.minecraft.world.item.AdventureModePredicate internal)
      Gets whether the predicate should show in the tooltip.
      Returns:
      Whether the predicate should show in the tooltip.
    • withTooltip

      public static net.minecraft.world.item.AdventureModePredicate withTooltip(net.minecraft.world.item.AdventureModePredicate internal, boolean tooltip)
      Sets whether the predicate should show in the tooltip.
      Parameters:
      tooltip - Whether the predicate should show in the tooltip.
      Returns:
      The new AdventureModePredicate.