net.acomputerdog.BlazeLoader.util.compatibility
Class Wall

java.lang.Object
  extended by net.acomputerdog.BlazeLoader.util.compatibility.Wall

public class Wall
extends java.lang.Object

A class that contains a map of Strings to Objects. Mods can get and set the value of the items.


Constructor Summary
Wall()
           
 
Method Summary
static java.lang.Object getItem(java.lang.String name)
          Gets an item from the wall.
static java.lang.String getItemType(java.lang.String name)
          Gets the type of an item on the wall.
static boolean isDefined(java.lang.String name)
          Checks if the given item exists.
static void setItem(java.lang.String name, java.lang.Object value)
          Sets an item on the wall.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wall

public Wall()
Method Detail

getItem

public static java.lang.Object getItem(java.lang.String name)
Gets an item from the wall.

Parameters:
name - The name of the item to get.
Returns:
Return the item with the given name, or null if none exists.

setItem

public static void setItem(java.lang.String name,
                           java.lang.Object value)
Sets an item on the wall.

Parameters:
name - The name of the item to get.
value - The value to set the item to.

getItemType

public static java.lang.String getItemType(java.lang.String name)
Gets the type of an item on the wall. The type is the name of the item's class.

Parameters:
name - The name of the item to get.
Returns:
Return the type of the item, or null if the item does not exist.

isDefined

public static boolean isDefined(java.lang.String name)
Checks if the given item exists.

Parameters:
name - The name of the item to check for.
Returns:
Return true if the item exists, false if not.