public final class RockBottomAPI
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
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
The registry for
Item
Use this to register custom items |
static IndexRegistry<java.lang.Class<? extends IPacket>> |
PACKET_REGISTRY
|
static IndexRegistry<java.lang.Class<? extends DataPart>> |
PART_REGISTRY
|
static java.util.Random |
RANDOM
An unseeded
Random for general use |
static NameRegistry<Tile> |
TILE_REGISTRY
The registry for
Tile
Use this to register custom tiles |
static java.lang.String |
VERSION
The current API version
|
| 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 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 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.util.Random RANDOM
Random for general usepublic static final java.lang.String VERSION
public static final NameRegistry<Tile> TILE_REGISTRY
Tile
public static final NameRegistry<Item> ITEM_REGISTRY
Item
public static final NameRegistry<java.lang.Class<? extends Entity>> ENTITY_REGISTRY
Entity
public static final IndexRegistry<java.lang.Class<? extends DataPart>> PART_REGISTRY
public static final IndexRegistry<java.lang.Class<? extends IPacket>> PACKET_REGISTRY
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)