mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
51 lines
1.2 KiB
Java
51 lines
1.2 KiB
Java
/*******************************************************************************
|
|
* Copyright 2011-2014 SirSengir
|
|
*
|
|
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
|
|
******************************************************************************/
|
|
package forestry.api.fuels;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
public class MoistenerFuel {
|
|
private final ItemStack item;
|
|
private final ItemStack product;
|
|
private final int moistenerValue;
|
|
private final int stage;
|
|
|
|
public MoistenerFuel(ItemStack item, ItemStack product, int stage, int moistenerValue) {
|
|
this.item = item;
|
|
this.product = product;
|
|
this.stage = stage;
|
|
this.moistenerValue = moistenerValue;
|
|
}
|
|
|
|
/**
|
|
* The item to use
|
|
*/
|
|
public ItemStack getItem() {
|
|
return item;
|
|
}
|
|
|
|
/**
|
|
* The item that leaves the moistener's working slot (i.e. mouldy wheat, decayed wheat, mulch)
|
|
*/
|
|
public ItemStack getProduct() {
|
|
return product;
|
|
}
|
|
|
|
/**
|
|
* How much this item contributes to the final product of the moistener (i.e. mycelium)
|
|
*/
|
|
public int getMoistenerValue() {
|
|
return moistenerValue;
|
|
}
|
|
|
|
/**
|
|
* What stage this product represents. Resources with lower stage value will be consumed first.
|
|
*/
|
|
public int getStage() {
|
|
return stage;
|
|
}
|
|
}
|