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.Map<java.lang.String,Command> |
COMMAND_REGISTRY
The registry for
Command
Use this to register custom commands |
static NameRegistry<java.lang.Class<? extends Entity>> |
ENTITY_REGISTRY
The registry for
Entity
Use this to register custom entity types |
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 NameRegistry<TileLayer> |
TILE_LAYER_REGISTRY |
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 java.util.logging.Logger |
createLogger(java.lang.String name) |
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 IEventHandler |
getEventHandler()
See
IEventHandler for more information |
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 java.util.logging.Logger |
logger() |
static void |
setInternals(Internals intern) |
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<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<TileLayer> TILE_LAYER_REGISTRY
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 java.util.logging.Logger createLogger(java.lang.String name)
public static java.util.logging.Logger logger()
public static void setInternals(Internals intern)