public abstract class VarWatchingImpl<T> extends VarSyncBase<T> implements Var<T>, ITagSerializable
listeners| 限定符 | 构造器和说明 |
|---|---|
protected |
VarWatchingImpl(int id,
net.minecraft.entity.DataWatcher watcher,
java.lang.String name,
T data) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract T |
get() |
protected net.minecraft.entity.DataWatcher |
getDelegate() |
int |
getId() |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound tag) |
void |
set(T data) |
java.lang.String |
toString()
All the toString method of a Var should be delegated to the actual data toString method.
|
void |
writeToNBT(net.minecraft.nbt.NBTTagCompound tag) |
add, iterator, load, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, removeprotected VarWatchingImpl(int id,
net.minecraft.entity.DataWatcher watcher,
java.lang.String name,
T data)
public int getId()
protected net.minecraft.entity.DataWatcher getDelegate()
public void readFromNBT(net.minecraft.nbt.NBTTagCompound tag)
readFromNBT 在接口中 ITagSerializablepublic void writeToNBT(net.minecraft.nbt.NBTTagCompound tag)
writeToNBT 在接口中 ITagSerializable