public final class RockBottomAPI
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static NameRegistry<Biome> |
BIOME_REGISTRY
The registry for
Biome
Use this to register custom biomes |
static IndexRegistry<java.lang.Class<? extends ChatComponent>> |
CHAT_COMPONENT_REGISTRY
|
static java.util.List<CombinerRecipe> |
COMBINER_RECIPES |
static java.util.Map<java.lang.String,Command> |
COMMAND_REGISTRY
The registry for
Command
Use this to register custom commands |
static java.util.List<BasicRecipe> |
CONSTRUCTION_TABLE_RECIPES |
static NameRegistry<java.lang.Class<? extends Entity>> |
ENTITY_REGISTRY
The registry for
Entity
Use this to register custom entity types |
static java.util.Map<IUseInfo,java.lang.Integer> |
FUEL_REGISTRY
The registry for
IUseInfos that can be used in machines as a fuel. |
static NameRegistry<Item> |
ITEM_REGISTRY
|
static NameRegistry<Keybind> |
KEYBIND_REGISTRY
The registry for
Keybind
Use this to register custom keybinds |
static java.util.List<IMainMenuTheme> |
MAIN_MENU_THEMES |
static java.util.List<BasicRecipe> |
MANUAL_CONSTRUCTION_RECIPES
The registry for
BasicRecipe
Use this to register construction recipes that can be used in the inventory Gui |
static IndexRegistry<java.lang.Class<? extends IPacket>> |
PACKET_REGISTRY
|
static IndexRegistry<java.lang.Class<? extends DataPart>> |
PART_REGISTRY
The registry for
DataSet parts
DO NOT use IndexRegistry.getNextFreeId() to register a custom part
and try not to register new DataPart types in general |
static java.util.List<SeparatorRecipe> |
SEPARATOR_RECIPES
The registry for
SeparatorRecipe
Use this to register recipes for the separator |
static java.util.List<SmelterRecipe> |
SMELTER_RECIPES
The registry for
SmelterRecipe
Use this to register recipes for the smelter |
static java.util.List<StamperRecipe> |
STAMPER_RECIPES |
static NameRegistry<Tile> |
TILE_REGISTRY
|
static NameRegistry<TileState> |
TILE_STATE_REGISTRY
The registry for
TileState
DO NOT manually register states into this registry, it is populated automatically |
static java.lang.String |
VERSION
The current API version
|
static java.util.List<java.lang.Class<? extends IWorldGenerator>> |
WORLD_GENERATORS
The registry for
IWorldGenerator
Use this to register custom world generators Every world generator class needs to have an empty constructor to be able to be initialized for the appropriate world |
| Constructor and Description |
|---|
RockBottomAPI() |
| Modifier and Type | Method and Description |
|---|---|
static IResourceName |
createInternalRes(java.lang.String resource)
Creates an internal
IResourceName to be used for vanilla game related resources |
static IResourceName |
createRes(IMod mod,
java.lang.String resource)
Creates an
IResourceName to be used by the specified IMod |
static IResourceName |
createRes(java.lang.String combined)
Creates an
IResourceName out of a combined string of the mod id
and the resource itself |
static IApiHandler |
getApiHandler()
See
IApiHandler for more information |
static CombinerRecipe |
getCombinerRecipe(ItemInstance inputOne,
ItemInstance inputTwo) |
static IEventHandler |
getEventHandler()
See
IEventHandler for more information |
static int |
getFuelValue(ItemInstance instance) |
static IGameInstance |
getGame()
See
IGameInstance for more information |
static IModLoader |
getModLoader()
See
IModLoader for more information |
static INetHandler |
getNet()
See
INetHandler for more information |
static SeparatorRecipe |
getSeparatorRecipe(ItemInstance input) |
static SmelterRecipe |
getSmelterRecipe(ItemInstance input) |
static StamperRecipe |
getStamperRecipe(ItemInstance input) |
static boolean |
isCombinerInput(ItemInstance instance,
ItemInstance other) |
static void |
setApiHandler(IApiHandler api)
For game internal use only
|
static void |
setEventHandler(IEventHandler event)
For game internal use only
|
static void |
setGameInstance(IGameInstance game)
For game internal use only
|
static void |
setModLoader(IModLoader mod)
For game internal use only
|
static void |
setNetHandler(INetHandler net)
For game internal use only
|
public static final java.lang.String VERSION
public static final NameRegistry<Tile> TILE_REGISTRY
public static final NameRegistry<Item> ITEM_REGISTRY
public static final NameRegistry<java.lang.Class<? extends Entity>> ENTITY_REGISTRY
Entity
public static final IndexRegistry<java.lang.Class<? extends DataPart>> PART_REGISTRY
DataSet parts
IndexRegistry.getNextFreeId() to register a custom part
and try not to register new DataPart types in generalpublic static final IndexRegistry<java.lang.Class<? extends IPacket>> PACKET_REGISTRY
public static final java.util.Map<java.lang.String,Command> COMMAND_REGISTRY
Command
public static final java.util.List<BasicRecipe> MANUAL_CONSTRUCTION_RECIPES
BasicRecipe
Guipublic static final java.util.List<BasicRecipe> CONSTRUCTION_TABLE_RECIPES
public static final java.util.List<StamperRecipe> STAMPER_RECIPES
public static final java.util.List<CombinerRecipe> COMBINER_RECIPES
public static final java.util.Map<IUseInfo,java.lang.Integer> FUEL_REGISTRY
IUseInfos that can be used in machines as a fuel.
The Integer specified is the amount of time the fuel will burn for
public static final java.util.List<SmelterRecipe> SMELTER_RECIPES
SmelterRecipe
public static final java.util.List<SeparatorRecipe> SEPARATOR_RECIPES
SeparatorRecipe
public static final java.util.List<java.lang.Class<? extends IWorldGenerator>> WORLD_GENERATORS
IWorldGenerator
public static final NameRegistry<Biome> BIOME_REGISTRY
Biome
public static final NameRegistry<TileState> TILE_STATE_REGISTRY
TileState
public static final NameRegistry<Keybind> KEYBIND_REGISTRY
Keybind
public static final IndexRegistry<java.lang.Class<? extends ChatComponent>> CHAT_COMPONENT_REGISTRY
public static final java.util.List<IMainMenuTheme> MAIN_MENU_THEMES
public static IApiHandler getApiHandler()
IApiHandler for more informationIApiHandlerpublic static INetHandler getNet()
INetHandler for more informationINetHandlerpublic static IEventHandler getEventHandler()
IEventHandler for more informationIEventHandlerpublic static IGameInstance getGame()
IGameInstance for more informationIGameInstancepublic static IModLoader getModLoader()
IModLoader for more informationIModLoaderpublic static IResourceName createInternalRes(java.lang.String resource)
IResourceName to be used for vanilla game related resourcesresource - The name of the resource to createIResourceNamepublic static IResourceName createRes(IMod mod, java.lang.String resource)
IResourceName to be used by the specified IModmod - The mod to use this resource nameresource - The name of the resource to createIResourceNamepublic static IResourceName createRes(java.lang.String combined)
IResourceName out of a combined string of the mod id
and the resource itselfcombined - The combined nameIResourceNamejava.lang.IllegalArgumentException - if the specified string cannot be parsed as an IResourceNamepublic static void setApiHandler(IApiHandler api)
public static void setNetHandler(INetHandler net)
public static void setEventHandler(IEventHandler event)
public static void setGameInstance(IGameInstance game)
public static void setModLoader(IModLoader mod)
public static int getFuelValue(ItemInstance instance)
public static SmelterRecipe getSmelterRecipe(ItemInstance input)
public static SeparatorRecipe getSeparatorRecipe(ItemInstance input)
public static StamperRecipe getStamperRecipe(ItemInstance input)
public static CombinerRecipe getCombinerRecipe(ItemInstance inputOne, ItemInstance inputTwo)
public static boolean isCombinerInput(ItemInstance instance, ItemInstance other)