public enum FuelRegistry extends java.lang.Enum<FuelRegistry> implements IFuelRegistry
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCachedFuelFluids() |
float |
getBurnRateMultiplier(net.minecraft.world.World world,
net.minecraft.fluid.Fluid fluid)
Get the burn rate of the given fluid.
|
int |
getFuelValue(net.minecraft.world.World world,
net.minecraft.fluid.Fluid fluid)
Get the fuel value of the given fluid; this is defined as the amount of compressed air generated in a Liquid
Compressor (without Speed Upgrades) by burning 1000mL of the fluid.
|
static FuelRegistry |
getInstance() |
java.util.Collection<net.minecraft.fluid.Fluid> |
registeredFuels(net.minecraft.world.World world)
Get all the known fuels which have been registered with the fuel registry.
|
void |
registerFuel(net.minecraft.tags.ITag<net.minecraft.fluid.Fluid> fluidTag,
int mLPerBucket,
float burnRateMultiplier)
Adds a burnable fluid to the Liquid Compressor's available burnable fuels.
|
void |
registerHotFluid(net.minecraft.fluid.Fluid fluid,
int mLPerBucket,
float burnRateMultiplier) |
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, valueOfgetBurnRateMultiplier, getFuelValue, registerFuelpublic 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 static FuelRegistry getInstance()
public void registerFuel(net.minecraft.tags.ITag<net.minecraft.fluid.Fluid> fluidTag,
int mLPerBucket,
float burnRateMultiplier)
IFuelRegistryregisterFuel in interface IFuelRegistryfluidTag - the fluid tag to registermLPerBucket - the amount of mL of air generated by burning 1000mB of the fuel in a Liquid Compressor. For
comparison, one piece of coal generates 16000mL in an Air Compressor.burnRateMultiplier - fuel burn rate multiplier; larger numbers mean the fuel burns faster and produces air
more quickly. The total amount of air produced does not change.public void registerHotFluid(net.minecraft.fluid.Fluid fluid,
int mLPerBucket,
float burnRateMultiplier)
public int getFuelValue(net.minecraft.world.World world,
net.minecraft.fluid.Fluid fluid)
IFuelRegistrygetFuelValue in interface IFuelRegistryfluid - the fluidpublic float getBurnRateMultiplier(net.minecraft.world.World world,
net.minecraft.fluid.Fluid fluid)
IFuelRegistrygetBurnRateMultiplier in interface IFuelRegistryfluid - the fluidpublic java.util.Collection<net.minecraft.fluid.Fluid> registeredFuels(net.minecraft.world.World world)
IFuelRegistryNote: this is a relatively expensive operation and should be used with care. Use IFuelRegistry.getFuelValue(Fluid)
if you just need the value of a known fluid.
registeredFuels in interface IFuelRegistryworld - the worldpublic void clearCachedFuelFluids()