public class FuelItems extends Object
Modifier and Type | Class and Description |
---|---|
class |
FuelItems.FuelValues
Store information about a particular item's fuel properties.
|
Constructor and Description |
---|
FuelItems() |
Modifier and Type | Method and Description |
---|---|
void |
addFuel(ItemStack stack,
boolean ignoreData,
double chargePerTick,
int burnTime)
Register an item as fuel.
|
FuelItems.FuelValues |
get(ItemStack stack)
Get the fuel values for the given item.
|
boolean |
has(ItemStack stack)
Check if the given can be used as a fuel.
|
public void addFuel(ItemStack stack, boolean ignoreData, double chargePerTick, int burnTime)
stack
- the item to registerignoreData
- true if the item's data value should be ignore; false otherwisechargePerTick
- the amount of SCU generated per tickburnTime
- the time in server ticks to convert the item into SCUpublic FuelItems.FuelValues get(ItemStack stack)
stack
- the item to checkpublic boolean has(ItemStack stack)
stack
- the item to checkCopyright © 2014. All rights reserved.