Class ExpandAdventureModePredicate
java.lang.Object
com.blamejared.crafttweaker.natives.item.component.ExpandAdventureModePredicate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.item.AdventureModePredicateCreates a new AdventureModePredicate with the given predicates and showInTooltip flag.static net.minecraft.world.item.AdventureModePredicateCreates a new AdventureModePredicate with the given blocks and showInTooltip flag.static net.minecraft.world.item.AdventureModePredicateCreates a new AdventureModePredicate with the given tags and showInTooltip flag.static booleanshowInTooltip(net.minecraft.world.item.AdventureModePredicate internal) Gets whether the predicate should show in the tooltip.static net.minecraft.world.item.AdventureModePredicatewithTooltip(net.minecraft.world.item.AdventureModePredicate internal, boolean tooltip) Sets whether the predicate should show in the tooltip.
-
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.
-