Package com.hbm_m.recipe
Class ChemicalPlantRecipe
java.lang.Object
com.hbm_m.recipe.ChemicalPlantRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
public class ChemicalPlantRecipe
extends Object
implements net.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
Chemical Plant recipe (1.20.1).
Важно: matches(SimpleContainer, Level) здесь не используется машиной напрямую — химзавод
работает позиционно по своим слотам/бакам и выбирает рецепт по ID. Тем не менее, рецепт должен быть
валиден для загрузки/показа/синхронизации и datagen.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final classstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionChemicalPlantRecipe(net.minecraft.resources.ResourceLocation id, List<ChemicalPlantRecipe.CountedIngredient> itemInputs, List<ChemicalPlantRecipe.FluidIngredient> fluidInputs, List<net.minecraft.world.item.ItemStack> itemOutputs, List<dev.architectury.fluid.FluidStack> fluidOutputs, int duration, int powerConsumption, net.minecraft.world.item.ItemStack iconItem, net.minecraft.resources.ResourceLocation iconFluid, String blueprintPool) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackassemble(net.minecraft.world.SimpleContainer container, net.minecraft.core.RegistryAccess registryAccess) booleancanCraftInDimensions(int width, int height) intList<dev.architectury.fluid.FluidStack>net.minecraft.resources.ResourceLocationgetId()net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient>List<net.minecraft.world.item.ItemStack>intnet.minecraft.world.item.ItemStackgetResultItem(net.minecraft.core.RegistryAccess registryAccess) net.minecraft.world.item.crafting.RecipeSerializer<?>net.minecraft.world.item.crafting.RecipeType<?>getType()booleanmatches(net.minecraft.world.SimpleContainer container, net.minecraft.world.level.Level level) booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getGroup, getRemainingItems, getToastSymbol, isIncomplete, isSpecial, showNotification
-
Constructor Details
-
ChemicalPlantRecipe
public ChemicalPlantRecipe(net.minecraft.resources.ResourceLocation id, List<ChemicalPlantRecipe.CountedIngredient> itemInputs, List<ChemicalPlantRecipe.FluidIngredient> fluidInputs, List<net.minecraft.world.item.ItemStack> itemOutputs, List<dev.architectury.fluid.FluidStack> fluidOutputs, int duration, int powerConsumption, @Nullable net.minecraft.world.item.ItemStack iconItem, @Nullable net.minecraft.resources.ResourceLocation iconFluid, @Nullable String blueprintPool)
-
-
Method Details
-
getItemInputs
-
getFluidInputs
-
getItemOutputs
-
getFluidOutputs
-
getDuration
public int getDuration() -
getPowerConsumption
public int getPowerConsumption() -
getBlueprintPool
-
requiresBlueprint
public boolean requiresBlueprint() -
matches
public boolean matches(@NotNull net.minecraft.world.SimpleContainer container, @NotNull net.minecraft.world.level.Level level) - Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
-
assemble
public net.minecraft.world.item.ItemStack assemble(@NotNull net.minecraft.world.SimpleContainer container, @NotNull net.minecraft.core.RegistryAccess registryAccess) - Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
-
canCraftInDimensions
public boolean canCraftInDimensions(int width, int height) - Specified by:
canCraftInDimensionsin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
-
getResultItem
public net.minecraft.world.item.ItemStack getResultItem(@NotNull net.minecraft.core.RegistryAccess registryAccess) - Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
-
getIngredients
public net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getIngredients()- Specified by:
getIngredientsin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
-
getId
public net.minecraft.resources.ResourceLocation getId()- Specified by:
getIdin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
-
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
-
getType
public net.minecraft.world.item.crafting.RecipeType<?> getType()- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.SimpleContainer>
-