public class Nanomachines
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addProvider(BehaviorProvider provider)
Register a new behavior provider.
|
static Controller |
getController(net.minecraft.entity.player.EntityPlayer player)
Get the nanomachine controller of the specified player.
|
static java.lang.Iterable<BehaviorProvider> |
getProviders()
Get a list of all currently registered providers.
|
static boolean |
hasController(net.minecraft.entity.player.EntityPlayer player)
Check whether a player has a nanomachine controller installed.
|
static Controller |
installController(net.minecraft.entity.player.EntityPlayer player)
Install a controller for the specified player if it doesn't already
have one.
|
static void |
uninstallController(net.minecraft.entity.player.EntityPlayer player)
Uninstall a controller from the specified player if it has one.
|
public static void addProvider(BehaviorProvider provider)
provider
- the provider to add.public static java.lang.Iterable<BehaviorProvider> getProviders()
public static boolean hasController(net.minecraft.entity.player.EntityPlayer player)
player
- the player to check for.public static Controller getController(net.minecraft.entity.player.EntityPlayer player)
player
- the player to get the controller for.public static Controller installController(net.minecraft.entity.player.EntityPlayer player)
player
- the player to install a nanomachine controller for.public static void uninstallController(net.minecraft.entity.player.EntityPlayer player)
player
- the player to uninstall a nanomachine controller from.