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 final record
An additional property to display on the patterns tooltip, such as whether substitutions of items was enabled or not. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.chat.Component
The text to use when the pattern uses Vanilla crafting as its method of producing the item.static final net.minecraft.network.chat.Component
The text to use when the pattern uses some other form of processing to produce the output. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addInput
(GenericStack stack) void
addInputsAndOutputs
(IPatternDetails details) void
void
addOutput
(GenericStack stack) void
addProperty
(net.minecraft.network.chat.Component description) void
addProperty
(net.minecraft.network.chat.Component name, net.minecraft.network.chat.Component value) net.minecraft.network.chat.Component
void
setOutputMethod
(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_CRAFTS
orOUTPUT_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
orOUTPUT_TEXT_PRODUCES
). Usually this will depend on the type of pattern and not so much the individual NBT data.
-
getProperties
-
getInputs
-
getOutputs
-
addInput
-
addInput
-
addOutput
-
addOutput
-
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()
-