Class CentrifugationRecipe
java.lang.Object
com.simibubi.create.content.processing.recipe.ProcessingRecipe<net.minecraft.world.item.crafting.RecipeInput,AdvancedProcessingRecipeParams>
com.petrolpark.compat.create.core.recipe.AdvancedProcessingRecipe<net.minecraft.world.item.crafting.RecipeInput>
com.petrolpark.compat.create.common.processing.centrifuge.CentrifugationRecipe
- All Implemented Interfaces:
ICentrifugationRecipe,IFTLProcessingRecipe<AdvancedProcessingRecipe<net.minecraft.world.item.crafting.RecipeInput>>,IBookRequiredRecipe,IBiomeSpecificRecipe,INamedRecipe,net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
public class CentrifugationRecipe
extends AdvancedProcessingRecipe<net.minecraft.world.item.crafting.RecipeInput>
implements ICentrifugationRecipe
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe base class for Centrifugation recipe generation.Nested classes/interfaces inherited from class com.petrolpark.compat.create.core.recipe.AdvancedProcessingRecipe
AdvancedProcessingRecipe.BasinBuilder<R extends AdvancedBasinRecipe>, AdvancedProcessingRecipe.Builder<R extends AdvancedProcessingRecipe<?>>, AdvancedProcessingRecipe.Serializer<R extends AdvancedProcessingRecipe<?>>Nested classes/interfaces inherited from class com.simibubi.create.content.processing.recipe.ProcessingRecipe
com.simibubi.create.content.processing.recipe.ProcessingRecipe.Factory<P extends com.simibubi.create.content.processing.recipe.ProcessingRecipeParams,R extends com.simibubi.create.content.processing.recipe.ProcessingRecipe<?, P>> -
Field Summary
Fields inherited from class com.petrolpark.compat.create.core.recipe.AdvancedProcessingRecipe
allowedBiomes, bookRequired, firstTimeLuckyKey, nameFields inherited from class com.simibubi.create.content.processing.recipe.ProcessingRecipe
fluidIngredients, fluidResults, ingredients, params, processingDuration, requiredHeat, resultsFields inherited from interface com.petrolpark.core.recipe.INamedRecipe
UNKNOWN_RECIPE_TRANSLATION_KEYFields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final AdvancedProcessingRecipe.Builder<CentrifugationRecipe> builder(net.minecraft.resources.ResourceLocation id) protected booleannet.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> net.neoforged.neoforge.fluids.FluidStacknet.neoforged.neoforge.fluids.FluidStackprotected intprotected intprotected intprotected intnet.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(net.minecraft.world.item.crafting.RecipeInput input) booleanmatches(net.minecraft.world.item.crafting.RecipeInput input, net.minecraft.world.level.Level level) List<net.minecraft.world.item.ItemStack> rollLuckyResults(com.simibubi.create.foundation.blockEntity.SmartBlockEntity blockEntity, net.minecraft.util.RandomSource random) Methods inherited from class com.petrolpark.compat.create.core.recipe.AdvancedProcessingRecipe
canSpecifyBookRequired, getAllowedBiomes, getAsRecipe, getFirstTimeLuckyKey, getName, isBookRequired, rollResults, setName, validateMethods inherited from class com.simibubi.create.content.processing.recipe.ProcessingRecipe
assemble, canCraftInDimensions, canRequireHeat, codec, enforceNextResult, getFluidIngredients, getFluidResults, getGroup, getIngredients, getParams, getProcessingDuration, getRequiredHeat, getResultItem, getRollableResults, getRollableResultsAsItemStacks, getSerializer, getType, getTypeInfo, isSpecial, rollResults, streamCodecMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.petrolpark.core.recipe.IBiomeSpecificRecipe
isValidAt, isValidInMethods inherited from interface com.petrolpark.compat.create.common.processing.centrifuge.ICentrifugationRecipe
apply, getFluidIngredients, getProcessingDuration, getRollableResultsMethods inherited from interface com.petrolpark.compat.create.core.recipe.firsttimelucky.IFTLProcessingRecipe
rollLuckyResultsMethods inherited from interface net.minecraft.world.item.crafting.Recipe
getToastSymbol, isIncomplete, showNotification
-
Constructor Details
-
CentrifugationRecipe
-
-
Method Details
-
matches
public boolean matches(@Nonnull net.minecraft.world.item.crafting.RecipeInput input, @Nonnull net.minecraft.world.level.Level level) - Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
canSpecifyDuration
protected boolean canSpecifyDuration()- Overrides:
canSpecifyDurationin classcom.simibubi.create.content.processing.recipe.ProcessingRecipe<net.minecraft.world.item.crafting.RecipeInput,AdvancedProcessingRecipeParams>
-
getMaxInputCount
protected int getMaxInputCount()- Specified by:
getMaxInputCountin classcom.simibubi.create.content.processing.recipe.ProcessingRecipe<net.minecraft.world.item.crafting.RecipeInput,AdvancedProcessingRecipeParams>
-
getMaxFluidInputCount
protected int getMaxFluidInputCount()- Overrides:
getMaxFluidInputCountin classcom.simibubi.create.content.processing.recipe.ProcessingRecipe<net.minecraft.world.item.crafting.RecipeInput,AdvancedProcessingRecipeParams>
-
getMaxOutputCount
protected int getMaxOutputCount()- Specified by:
getMaxOutputCountin classcom.simibubi.create.content.processing.recipe.ProcessingRecipe<net.minecraft.world.item.crafting.RecipeInput,AdvancedProcessingRecipeParams>
-
getMaxFluidOutputCount
protected int getMaxFluidOutputCount()- Overrides:
getMaxFluidOutputCountin classcom.simibubi.create.content.processing.recipe.ProcessingRecipe<net.minecraft.world.item.crafting.RecipeInput,AdvancedProcessingRecipeParams>
-
getRemainingItems
public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(@Nonnull net.minecraft.world.item.crafting.RecipeInput input) - Specified by:
getRemainingItemsin interfaceICentrifugationRecipe- Specified by:
getRemainingItemsin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.RecipeInput>
-
getCentrifugationIngredients
public net.minecraft.core.NonNullList<net.minecraft.world.item.crafting.Ingredient> getCentrifugationIngredients()- Specified by:
getCentrifugationIngredientsin interfaceICentrifugationRecipe
-
rollLuckyResults
public List<net.minecraft.world.item.ItemStack> rollLuckyResults(com.simibubi.create.foundation.blockEntity.SmartBlockEntity blockEntity, net.minecraft.util.RandomSource random) - Specified by:
rollLuckyResultsin interfaceICentrifugationRecipe- Specified by:
rollLuckyResultsin interfaceIFTLProcessingRecipe<AdvancedProcessingRecipe<net.minecraft.world.item.crafting.RecipeInput>>
-
getDenseOutputFluid
public net.neoforged.neoforge.fluids.FluidStack getDenseOutputFluid()- Specified by:
getDenseOutputFluidin interfaceICentrifugationRecipe
-
getLightOutputFluid
public net.neoforged.neoforge.fluids.FluidStack getLightOutputFluid()- Specified by:
getLightOutputFluidin interfaceICentrifugationRecipe
-
builder
public static final AdvancedProcessingRecipe.Builder<CentrifugationRecipe> builder(net.minecraft.resources.ResourceLocation id)
-