public interface IFuelRegistry
| Modifier and Type | Method and Description |
|---|---|
default float |
getBurnRateMultiplier(net.minecraft.fluid.Fluid fluid)
Deprecated.
|
float |
getBurnRateMultiplier(net.minecraft.world.World world,
net.minecraft.fluid.Fluid fluid)
Get the burn rate of the given fluid.
|
default int |
getFuelValue(net.minecraft.fluid.Fluid fluid)
Deprecated.
|
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.
|
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.
|
default void |
registerFuel(net.minecraft.tags.ITag<net.minecraft.fluid.Fluid> fluidTag,
int mLPerBucket)
Deprecated.
fuel values should be loaded from datapack recipes
|
void |
registerFuel(net.minecraft.tags.ITag<net.minecraft.fluid.Fluid> fluidTag,
int mLPerBucket,
float burnRateMultiplier)
Deprecated.
fuel values should be loaded from datapack recipes
|
@Deprecated
void registerFuel(net.minecraft.tags.ITag<net.minecraft.fluid.Fluid> fluidTag,
int mLPerBucket,
float burnRateMultiplier)
fluidTag - 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.@Deprecated
default void registerFuel(net.minecraft.tags.ITag<net.minecraft.fluid.Fluid> fluidTag,
int mLPerBucket)
registerFuel(ITag, int, float), with a default burn rate of 1.fluidTag - the fluid tag to registermLPerBucket - the amount of mL of air generated by burning 1000mB of the fuel. For comparison, one piece
of coal generates 16000mL in an Air Compressor.int getFuelValue(net.minecraft.world.World world,
net.minecraft.fluid.Fluid fluid)
fluid - the fluid@Deprecated default int getFuelValue(net.minecraft.fluid.Fluid fluid)
float getBurnRateMultiplier(net.minecraft.world.World world,
net.minecraft.fluid.Fluid fluid)
fluid - the fluid@Deprecated default float getBurnRateMultiplier(net.minecraft.fluid.Fluid fluid)
java.util.Collection<net.minecraft.fluid.Fluid> registeredFuels(net.minecraft.world.World world)
Note: this is a relatively expensive operation and should be used with care. Use getFuelValue(Fluid)
if you just need the value of a known fluid.
world - the world