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<GenericStack> getInputs()
    • getOutputs

      public List<GenericStack> getOutputs()
    • addInput

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

      public void addInput(GenericStack stack)
    • addOutput

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

      public void addOutput(GenericStack stack)
    • 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()