Enum Class FuelRegistry

java.lang.Object
java.lang.Enum<FuelRegistry>
me.desht.pneumaticcraft.common.fluid.FuelRegistry
All Implemented Interfaces:
Serializable, Comparable<FuelRegistry>, Constable, IFuelRegistry

public enum FuelRegistry extends Enum<FuelRegistry> implements IFuelRegistry
  • Enum Constant Details

  • Method Details

    • values

      public static FuelRegistry[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FuelRegistry valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getInstance

      public static FuelRegistry getInstance()
    • registerHotFluid

      public void registerHotFluid(net.minecraft.world.level.material.Fluid fluid, int mLPerBucket, float burnRateMultiplier)
    • getFuelValue

      public int getFuelValue(net.minecraft.world.level.Level level, net.minecraft.world.level.material.Fluid fluid)
      Description copied from interface: IFuelRegistry
      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.
      Specified by:
      getFuelValue in interface IFuelRegistry
      Parameters:
      level - the level, for recipe lookup purposes
      fluid - the fluid
      Returns:
      the fuel value (0 for fluids which have not been registered as fuels)
    • getBurnRateMultiplier

      public float getBurnRateMultiplier(net.minecraft.world.level.Level world, net.minecraft.world.level.material.Fluid fluid)
      Description copied from interface: IFuelRegistry
      Get the burn rate of the given fluid. Higher burn rates will generate compressed air faster in a Liquid Compressor (and be used up faster), without affecting the total amount of air produced.
      Specified by:
      getBurnRateMultiplier in interface IFuelRegistry
      Parameters:
      world - the level, for recipe lookup purposes
      fluid - the fluid
      Returns:
      the burn rate (1.0f is the standard, default, rate)
    • registeredFuels

      public Collection<net.minecraft.world.level.material.Fluid> registeredFuels(net.minecraft.world.level.Level level)
      Description copied from interface: IFuelRegistry
      Get all the known fuels which have been registered with the fuel registry. In the case of conflicts, precedence is as follows: 1) fluids from datapacks, 2) fluid tags from datapacks, 3) fluids from API registration (including built-in), 4) fluid tags from API registration

      Note: this is a relatively expensive operation and should be used with care. Use IFuelRegistry.getFuelValue(Level, Fluid) if you just need the value of a known fluid.

      Specified by:
      registeredFuels in interface IFuelRegistry
      Parameters:
      level - the level, for recipe lookup purposes
      Returns:
      a collection of fuel fluids
    • clearCachedFuelFluids

      public void clearCachedFuelFluids()