Package appeng.api.crafting
Class PatternDetailsTooltip
java.lang.Object
appeng.api.crafting.PatternDetailsTooltip
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final recordstatic final recordAn additional property to display on the patterns tooltip, such as whether substitutions of items was enabled or not.static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.chat.ComponentThe text to use when the pattern uses Vanilla crafting as its method of producing the item.static final net.minecraft.network.chat.ComponentThe text to use when the pattern uses some other form of processing to produce the output. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddInputsAndOutputs(IPatternDetails details) voidaddInvalidInput(net.minecraft.network.chat.Component description) voidaddInvalidInput(net.minecraft.network.chat.Component description, long amount) voidaddInvalidInput(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.voidaddInvalidOutput(net.minecraft.network.chat.Component description) voidaddInvalidOutput(net.minecraft.network.chat.Component description, long amount) voidaddInvalidOutput(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.voidvoidvoidaddProperty(net.minecraft.network.chat.Component description) voidaddProperty(net.minecraft.network.chat.Component name, net.minecraft.network.chat.Component value) net.minecraft.network.chat.ComponentvoidsetOutputMethod(net.minecraft.network.chat.Component outputMethod)
-
Field Details
-
OUTPUT_TEXT_CRAFTS
public static final net.minecraft.network.chat.Component OUTPUT_TEXT_CRAFTSThe 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_PRODUCESThe 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_CRAFTSorOUTPUT_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_CRAFTSorOUTPUT_TEXT_PRODUCES). Usually this will depend on the type of pattern and not so much the individual NBT data.
-
getProperties
-
getInputs
-
getOutputs
-
addInput
-
addInput
-
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
-
addOutput
-
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
-
getOutputMethod
public net.minecraft.network.chat.Component getOutputMethod()
-