Actually getValue isn't that great a idea
This commit is contained in:
parent
90a92e8ce1
commit
714eaaf0cf
@ -177,10 +177,10 @@ public class FlagWatcher {
|
|||||||
return getItemStack(slot.getSlot());
|
return getItemStack(slot.getSlot());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected <T extends Object> T getValue(int no, T backup) {
|
protected Object getValue(int no, Object backup) {
|
||||||
if (entityValues.containsKey(no))
|
if (entityValues.containsKey(no))
|
||||||
return (T) entityValues.get(no);
|
return entityValues.get(no);
|
||||||
return (T) backup;
|
return backup;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<WrappedWatchableObject> getWatchableObjects() {
|
public List<WrappedWatchableObject> getWatchableObjects() {
|
||||||
|
Loading…
Reference in New Issue
Block a user