Package hiiragi283.core.common.recipe
Class HCChargingRecipe
-
- All Implemented Interfaces:
-
hiiragi283.core.api.recipe.HTRecipe,hiiragi283.core.api.recipe.base.HTSerializableRecipe,java.util.function.Predicate,net.minecraft.world.item.crafting.Recipe
public final class HCChargingRecipe implements HTSerializableRecipe<HCChargingRecipe.Input>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classHCChargingRecipe.Input
-
Field Summary
Fields Modifier and Type Field Description public final static IntegerDEFAULT_ENERGYprivate final Ingredientingredientprivate final HTItemResultresultprivate final IntegerrequiredEnergyprivate final ItemStacktoastSymbolprivate final NonNullList<Ingredient>ingredientsprivate final BooleanisSpecialprivate final BooleanisIncompleteprivate final Stringgroupprivate final RecipeSerializer<?>serializerprivate final RecipeType<?>type
-
Constructor Summary
Constructors Constructor Description HCChargingRecipe(Ingredient ingredient, HTItemResult result, Integer requiredEnergy)
-
Method Summary
Modifier and Type Method Description final IngredientgetIngredient()final HTItemResultgetResult()final IntegergetRequiredEnergy()Booleantest(HCChargingRecipe.Input input)指定されたinputが,このレシピの条件を満たすか判定します。 ItemStackassemble(HCChargingRecipe.Input input, Boolean preview)指定されたinputから完成品を作成します。 RecipeSerializer<?>getSerializer()RecipeType<?>getType()-
Methods inherited from class hiiragi283.core.common.recipe.HCChargingRecipe
getGroup, getIngredients, getSerializer, getToastSymbol, getType, isIncomplete, isSpecial -
Methods inherited from class hiiragi283.core.api.recipe.base.HTSerializableRecipe
assemble, canCraftInDimensions, getIngredients, getRemainingItems, getResultItem, isSpecial, matches -
Methods inherited from class net.minecraft.world.item.crafting.Recipe
showNotification -
Methods inherited from class java.util.function.Predicate
and, negate, or -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HCChargingRecipe
HCChargingRecipe(Ingredient ingredient, HTItemResult result, Integer requiredEnergy)
-
-
Method Detail
-
getIngredient
final Ingredient getIngredient()
-
getResult
final HTItemResult getResult()
-
getRequiredEnergy
final Integer getRequiredEnergy()
-
test
Boolean test(HCChargingRecipe.Input input)
指定されたinputが,このレシピの条件を満たすか判定します。
-
assemble
ItemStack assemble(HCChargingRecipe.Input input, Boolean preview)
指定されたinputから完成品を作成します。
-
getSerializer
RecipeSerializer<?> getSerializer()
-
getType
RecipeType<?> getType()
-
-
-
-