Interface InvalidPatternTooltipStrategy

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface InvalidPatternTooltipStrategy
This stragegy is used when a player views the tooltip of an encoded pattern that failed to decode properly. It should attempt to extract as much information as possible from the given tag to help the player identify which recipe the pattern contained originally.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    getTooltip(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, @Nullable Exception cause, net.minecraft.world.item.TooltipFlag flags)
     
  • Method Details

    • getTooltip

      PatternDetailsTooltip getTooltip(net.minecraft.world.item.ItemStack stack, net.minecraft.world.level.Level level, @Nullable @Nullable Exception cause, net.minecraft.world.item.TooltipFlag flags)
      Parameters:
      stack - The encoded pattern.
      cause - The error thrown by the decoder - if any.