net.minecraft.src
Class DataWatcher

java.lang.Object
  extended by net.minecraft.src.DataWatcher

public class DataWatcher
extends Object


Constructor Summary
DataWatcher()
           
 
Method Summary
 void addObject(int par1, Object par2Obj)
          adds a new object to dataWatcher to watch, to update an already existing object see updateObject.
 List func_75685_c()
           
 byte getWatchableObjectByte(int par1)
          gets the bytevalue of a watchable object
 int getWatchableObjectInt(int par1)
          gets a watchable object and returns it as a Integer
 short getWatchableObjectShort(int par1)
           
 String getWatchableObjectString(int par1)
          gets a watchable object and returns it as a String
 boolean hasChanges()
           
static List readWatchableObjects(DataInputStream par0DataInputStream)
           
 List unwatchAndReturnAllWatched()
           
 void updateObject(int par1, Object par2Obj)
          updates an already existing object
 void updateWatchedObjectsFromList(List par1List)
           
static void writeObjectsInListToStream(List par0List, DataOutputStream par1DataOutputStream)
          writes every object in passed list to dataoutputstream, terminated by 0x7F
 void writeWatchableObjects(DataOutputStream par1DataOutputStream)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataWatcher

public DataWatcher()
Method Detail

addObject

public void addObject(int par1,
                      Object par2Obj)
adds a new object to dataWatcher to watch, to update an already existing object see updateObject. Arguments: data Value Id, Object to add


getWatchableObjectByte

public byte getWatchableObjectByte(int par1)
gets the bytevalue of a watchable object


getWatchableObjectShort

public short getWatchableObjectShort(int par1)

getWatchableObjectInt

public int getWatchableObjectInt(int par1)
gets a watchable object and returns it as a Integer


getWatchableObjectString

public String getWatchableObjectString(int par1)
gets a watchable object and returns it as a String


updateObject

public void updateObject(int par1,
                         Object par2Obj)
updates an already existing object


hasChanges

public boolean hasChanges()

writeObjectsInListToStream

public static void writeObjectsInListToStream(List par0List,
                                              DataOutputStream par1DataOutputStream)
                                       throws IOException
writes every object in passed list to dataoutputstream, terminated by 0x7F

Throws:
IOException

unwatchAndReturnAllWatched

public List unwatchAndReturnAllWatched()

writeWatchableObjects

public void writeWatchableObjects(DataOutputStream par1DataOutputStream)
                           throws IOException
Throws:
IOException

readWatchableObjects

public static List readWatchableObjects(DataInputStream par0DataInputStream)
                                 throws IOException
Throws:
IOException

func_75685_c

public List func_75685_c()

updateWatchedObjectsFromList

public void updateWatchedObjectsFromList(List par1List)