ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/api/recipe/CoffeeIngredient.java

40 lines
1.1 KiB
Java
Raw Normal View History

2016-01-05 04:47:35 +01:00
/*
2016-05-16 22:52:27 +02:00
* This file ("CoffeeIngredient.java") is part of the Actually Additions mod for Minecraft.
2016-01-05 04:47:35 +01:00
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
2016-05-16 22:52:27 +02:00
* http://ellpeck.de/actaddlicense
2016-01-05 04:47:35 +01:00
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2017-01-01 16:23:26 +01:00
* © 2015-2017 Ellpeck
2016-01-05 04:47:35 +01:00
*/
2016-05-14 13:51:18 +02:00
package de.ellpeck.actuallyadditions.api.recipe;
2016-01-05 04:47:35 +01:00
2016-05-14 13:51:18 +02:00
import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI;
2016-01-05 04:47:35 +01:00
import net.minecraft.item.ItemStack;
import net.minecraft.potion.PotionEffect;
public class CoffeeIngredient{
public final ItemStack ingredient;
public final int maxAmplifier;
protected PotionEffect[] effects;
public CoffeeIngredient(ItemStack ingredient, PotionEffect[] effects, int maxAmplifier){
this.ingredient = ingredient.copy();
this.effects = effects;
this.maxAmplifier = maxAmplifier;
}
public PotionEffect[] getEffects(){
return this.effects;
}
public boolean effect(ItemStack stack){
2016-05-14 13:51:18 +02:00
return ActuallyAdditionsAPI.methodHandler.addEffectToStack(stack, this);
2016-01-05 04:47:35 +01:00
}
public String getExtraText(){
2017-11-02 22:49:53 +01:00
return "";
2016-01-05 04:47:35 +01:00
}
}