Class PneumaticRegistry

java.lang.Object
me.desht.pneumaticcraft.api.PneumaticRegistry

public final class PneumaticRegistry extends Object
This class can be used to register and access various things to and from the mod. All access is via getInstance()
  • Field Details

  • Constructor Details

    • PneumaticRegistry

      public PneumaticRegistry()
  • Method Details

    • getInstance

      public static PneumaticRegistry.IPneumaticCraftInterface getInstance()
      Get an instance of the top-level API.
      Returns:
      the top-level API
    • init

      public static void init(PneumaticRegistry.IPneumaticCraftInterface inter)
      Do not call this method yourself. For PneumaticCraft internal usage only!
      Parameters:
      inter - reference to the API interface object
    • RL

      public static net.minecraft.resources.ResourceLocation RL(String path)
      Get a resource location with the domain of PneumaticCraft: Repressurized's mod ID.
      Parameters:
      path - the path
      Returns:
      a mod-specific ResourceLocation for the given path