public class IntegrationRecipeBasic extends IntegrationRecipe
Modifier and Type | Field and Description |
---|---|
protected net.minecraft.item.ItemStack |
output |
protected long |
requiredMicroJoules |
protected IngredientStack |
target |
protected com.google.common.collect.ImmutableList<IngredientStack> |
toIntegrate |
name
Constructor and Description |
---|
IntegrationRecipeBasic(net.minecraft.util.ResourceLocation name,
long requiredMicroJoules,
IngredientStack target,
java.util.List<IngredientStack> toIntegrate,
net.minecraft.item.ItemStack output) |
IntegrationRecipeBasic(java.lang.String name,
long requiredMicroJoules,
IngredientStack target,
java.util.List<IngredientStack> toIntegrate,
net.minecraft.item.ItemStack output) |
Modifier and Type | Method and Description |
---|---|
IngredientStack |
getCenterStack() |
net.minecraft.item.ItemStack |
getOutput(net.minecraft.item.ItemStack target,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> toIntegrate)
Determines the output of this recipe
|
long |
getRequiredMicroJoules(net.minecraft.item.ItemStack output)
Determines the amount of MJ required to integrate
|
com.google.common.collect.ImmutableList<IngredientStack> |
getRequirements(net.minecraft.item.ItemStack output)
Determines the components to use when crafting finishes
|
protected boolean |
matches(net.minecraft.item.ItemStack target,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> toIntegrate) |
equals, hashCode
protected final long requiredMicroJoules
protected final IngredientStack target
protected final com.google.common.collect.ImmutableList<IngredientStack> toIntegrate
@Nonnull protected final net.minecraft.item.ItemStack output
public IntegrationRecipeBasic(net.minecraft.util.ResourceLocation name, long requiredMicroJoules, IngredientStack target, java.util.List<IngredientStack> toIntegrate, @Nonnull net.minecraft.item.ItemStack output)
public IntegrationRecipeBasic(java.lang.String name, long requiredMicroJoules, IngredientStack target, java.util.List<IngredientStack> toIntegrate, @Nonnull net.minecraft.item.ItemStack output)
protected boolean matches(@Nonnull net.minecraft.item.ItemStack target, net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> toIntegrate)
public net.minecraft.item.ItemStack getOutput(@Nonnull net.minecraft.item.ItemStack target, net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> toIntegrate)
IntegrationRecipe
getOutput
in class IntegrationRecipe
target
- the stack in the middle to integrate the components intotoIntegrate
- All available stacks to integrate (not all have to be used up in this recipe)public com.google.common.collect.ImmutableList<IngredientStack> getRequirements(net.minecraft.item.ItemStack output)
IntegrationRecipe
getRequirements
in class IntegrationRecipe
output
- The generated outputted, determined by getOutputpublic long getRequiredMicroJoules(net.minecraft.item.ItemStack output)
IntegrationRecipe
getRequiredMicroJoules
in class IntegrationRecipe
output
- The output that would be generatedpublic IngredientStack getCenterStack()
getCenterStack
in class IntegrationRecipe