Class PatternDetailsTooltip

java.lang.Object
appeng.api.crafting.PatternDetailsTooltip

public class PatternDetailsTooltip extends Object
Properties shown in the tooltip of an encoded pattern. Used for both valid and invalid encoded patterns. For invalid patterns, only partial information might be given.
  • Field Details

    • OUTPUT_TEXT_CRAFTS

      public static final net.minecraft.network.chat.Component OUTPUT_TEXT_CRAFTS
      The text to use when the pattern uses Vanilla crafting as its method of producing the item. Usually reserved for patterns used in molecular assemblers.
    • OUTPUT_TEXT_PRODUCES

      public static final net.minecraft.network.chat.Component OUTPUT_TEXT_PRODUCES
      The text to use when the pattern uses some other form of processing to produce the output.
  • Constructor Details

    • PatternDetailsTooltip

      public PatternDetailsTooltip(net.minecraft.network.chat.Component outputMethod)
      Parameters:
      outputMethod - The method of producing the outputs of this pattern (OUTPUT_TEXT_CRAFTS or OUTPUT_TEXT_PRODUCES). Usually this will depend on the type of pattern and not so much the individual NBT data.
  • Method Details

    • setOutputMethod

      public void setOutputMethod(net.minecraft.network.chat.Component outputMethod)
      Parameters:
      outputMethod - The method of producing the outputs of this pattern (OUTPUT_TEXT_CRAFTS or OUTPUT_TEXT_PRODUCES). Usually this will depend on the type of pattern and not so much the individual NBT data.
    • getProperties

      public List<PatternDetailsTooltip.Property> getProperties()
    • getInputs

      public List<PatternDetailsTooltip.Entry> getInputs()
    • getOutputs

      public List<PatternDetailsTooltip.Entry> getOutputs()
    • addInput

      public void addInput(PatternDetailsTooltip.Entry entry)
    • addInput

      public void addInput(AEKey what, long amount)
    • addInvalidInput

      public void addInvalidInput(net.minecraft.network.chat.Component description)
    • addInvalidInput

      public void addInvalidInput(net.minecraft.network.chat.Component description, long amount)
    • addInvalidInput

      public void addInvalidInput(net.minecraft.network.chat.Component description, AEKeyType type, long amount)
      Adds an invalid entry to this tooltip, for which the amount and the type of ingredient was known. The type is used to format the amount appropriate for the given type (i.e. shown as Buckets for fluids).
    • addOutput

      public void addOutput(AEKey what, long amount)
    • addOutput

      public void addOutput(PatternDetailsTooltip.Entry entry)
    • addInvalidOutput

      public void addInvalidOutput(net.minecraft.network.chat.Component description)
    • addInvalidOutput

      public void addInvalidOutput(net.minecraft.network.chat.Component description, long amount)
    • addInvalidOutput

      public void addInvalidOutput(net.minecraft.network.chat.Component description, AEKeyType type, long amount)
      Adds an invalid entry to this tooltip, for which the amount and the type of ingredient was known. The type is used to format the amount appropriate for the given type (i.e. shown as Buckets for fluids).
    • addProperty

      public void addProperty(net.minecraft.network.chat.Component name, net.minecraft.network.chat.Component value)
    • addProperty

      public void addProperty(net.minecraft.network.chat.Component description)
    • addInputsAndOutputs

      public void addInputsAndOutputs(IPatternDetails details)
    • getOutputMethod

      public net.minecraft.network.chat.Component getOutputMethod()