YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.entity.DataWatcher Class Reference

Public Member Functions

void addObject (int par1, Object par2Obj)
 
void addObjectByDataType (int par1, int par2)
 
byte getWatchableObjectByte (int par1)
 
short getWatchableObjectShort (int par1)
 
int getWatchableObjectInt (int par1)
 
String getWatchableObjectString (int par1)
 
ItemStack getWatchableObjectItemStack (int par1)
 
void updateObject (int par1, Object par2Obj)
 
void setObjectWatched (int par1)
 
boolean hasChanges ()
 
List unwatchAndReturnAllWatched ()
 
void writeWatchableObjects (DataOutputStream par1DataOutputStream) throws IOException
 
List getAllWatched ()
 
void updateWatchedObjectsFromList (List par1List)
 
boolean getIsBlank ()
 

Static Public Member Functions

static void writeObjectsInListToStream (List par0List, DataOutputStream par1DataOutputStream) throws IOException
 
static List readWatchableObjects (DataInputStream par0DataInputStream) throws IOException
 

Member Function Documentation

void net.minecraft.entity.DataWatcher.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

void net.minecraft.entity.DataWatcher.addObjectByDataType ( int  par1,
int  par2 
)

Add a new object for the DataWatcher to watch, using the specified data type.

List net.minecraft.entity.DataWatcher.getAllWatched ( )
boolean net.minecraft.entity.DataWatcher.getIsBlank ( )
byte net.minecraft.entity.DataWatcher.getWatchableObjectByte ( int  par1)

gets the bytevalue of a watchable object

int net.minecraft.entity.DataWatcher.getWatchableObjectInt ( int  par1)

gets a watchable object and returns it as a Integer

ItemStack net.minecraft.entity.DataWatcher.getWatchableObjectItemStack ( int  par1)

Get a watchable object as an ItemStack.

short net.minecraft.entity.DataWatcher.getWatchableObjectShort ( int  par1)
String net.minecraft.entity.DataWatcher.getWatchableObjectString ( int  par1)

gets a watchable object and returns it as a String

boolean net.minecraft.entity.DataWatcher.hasChanges ( )
static List net.minecraft.entity.DataWatcher.readWatchableObjects ( DataInputStream  par0DataInputStream) throws IOException
static
void net.minecraft.entity.DataWatcher.setObjectWatched ( int  par1)
List net.minecraft.entity.DataWatcher.unwatchAndReturnAllWatched ( )
void net.minecraft.entity.DataWatcher.updateObject ( int  par1,
Object  par2Obj 
)

updates an already existing object

void net.minecraft.entity.DataWatcher.updateWatchedObjectsFromList ( List  par1List)
static void net.minecraft.entity.DataWatcher.writeObjectsInListToStream ( List  par0List,
DataOutputStream  par1DataOutputStream 
) throws IOException
static

writes every object in passed list to dataoutputstream, terminated by 0x7F

void net.minecraft.entity.DataWatcher.writeWatchableObjects ( DataOutputStream  par1DataOutputStream) throws IOException

The documentation for this class was generated from the following file: