mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-04 14:53:38 +02:00
39 lines
1.1 KiB
Java
39 lines
1.1 KiB
Java
|
/*
|
||
|
* This file ("CoffeeIngredient.java") is part of the Actually Additions Mod for Minecraft.
|
||
|
* It is created and owned by Ellpeck and distributed
|
||
|
* under the Actually Additions License to be found at
|
||
|
* http://ellpeck.de/actaddlicense/
|
||
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
||
|
*
|
||
|
* © 2016 Ellpeck
|
||
|
*/
|
||
|
|
||
|
package de.ellpeck.actuallyadditions.api.recipe.coffee;
|
||
|
|
||
|
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){
|
||
|
return CoffeeBrewing.addEffectToStack(stack, this);
|
||
|
}
|
||
|
|
||
|
public String getExtraText(){
|
||
|
return null;
|
||
|
}
|
||
|
}
|