public enum FuelRegistry extends java.lang.Enum<FuelRegistry> implements IFuelManager
Modifier and Type | Class and Description |
---|---|
static class |
FuelRegistry.DirtyFuel |
static class |
FuelRegistry.Fuel |
IFuelManager.IDirtyFuel
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
IFuelManager.IDirtyFuel |
addDirtyFuel(net.minecraftforge.fluids.FluidStack fuel,
long powerPerCycle,
int totalBurningTime,
net.minecraftforge.fluids.FluidStack residue) |
<F extends IFuel> |
addFuel(F fuel) |
IFuel |
addFuel(net.minecraftforge.fluids.FluidStack fluid,
long powerPerCycle,
int totalBurningTime) |
IFuel |
getFuel(net.minecraftforge.fluids.FluidStack fluid) |
java.util.Collection<IFuel> |
getFuels() |
static FuelRegistry |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FuelRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
addDirtyFuel, addFuel
public static final FuelRegistry INSTANCE
public static FuelRegistry[] values()
for (FuelRegistry c : FuelRegistry.values()) System.out.println(c);
public static FuelRegistry valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic <F extends IFuel> F addFuel(F fuel)
addFuel
in interface IFuelManager
public IFuel addFuel(net.minecraftforge.fluids.FluidStack fluid, long powerPerCycle, int totalBurningTime)
addFuel
in interface IFuelManager
public IFuelManager.IDirtyFuel addDirtyFuel(net.minecraftforge.fluids.FluidStack fuel, long powerPerCycle, int totalBurningTime, net.minecraftforge.fluids.FluidStack residue)
addDirtyFuel
in interface IFuelManager
residue
- The residue fluidstack, per bucket of the original fuel.public java.util.Collection<IFuel> getFuels()
getFuels
in interface IFuelManager
public IFuel getFuel(net.minecraftforge.fluids.FluidStack fluid)
getFuel
in interface IFuelManager