Package de.eimmer.inventar
Class SchmiedeRezept
java.lang.Object
de.eimmer.inventar.SchmiedeRezept
- All Implemented Interfaces:
Geschluesselt
,Rezept
- Direct Known Subclasses:
SchmiedeBeschneidungsRezept
,SchmiedeTransformationsRezept
Represents a smithing rezept.
-
Constructor Summary
ConstructorsConstructorDescriptionSchmiedeRezept
(NamensraumbezogenerSchluessel key, GegenstandsStapel result, RezeptWahlmoeglichkeit base, RezeptWahlmoeglichkeit addition) Deprecated. -
Method Summary
-
Constructor Details
-
SchmiedeRezept
@Deprecated public SchmiedeRezept(@NotNull NamensraumbezogenerSchluessel key, @NotNull GegenstandsStapel result, @NotNull RezeptWahlmoeglichkeit base, @NotNull RezeptWahlmoeglichkeit addition) Deprecated.as of Minecraft 1.20, smithing recipes are now separated into two distinct rezept types,SchmiedeTransformationsRezept
andSchmiedeBeschneidungsRezept
. This class now acts as a base class to these two classes and will do nothing when added to the server.Create a smithing rezept to produce the specified result GegenstandsStapel.- Parameters:
key
- The unique rezept keyresult
- The item you want the rezept to create.base
- The base ingredientaddition
- The addition ingredient
-
-
Method Details
-
getBase
Get the base rezept item.- Returns:
- base choice
-
getAddition
Get the addition rezept item.- Returns:
- addition choice
-
getResult
Description copied from interface:Rezept
Get the result of this rezept. -
getKey
Description copied from interface:Geschluesselt
Return the namespaced identifier for this object.- Specified by:
getKey
in interfaceGeschluesselt
- Returns:
- this object's key
-
SchmiedeTransformationsRezept
andSchmiedeBeschneidungsRezept
.