Update CustomEntityRegistry to allow other plugins to override classees

This commit is contained in:
fullwall 2016-11-25 19:11:35 +08:00
parent 83413cb1b8
commit 0fa0d29f17

View File

@ -21,12 +21,17 @@ public class CustomEntityRegistry extends RegistryMaterials {
}
@Override
public int a(Object key) {
if (this.entityIds.containsKey(key)) {
return this.entityIds.get(key);
public void a(int code, Object key, Object v) {
put(code, (MinecraftKey) key, (Class<? extends Entity>) v);
}
return this.wrapped.a((Class<? extends Entity>) key);
@Override
public int a(Object key) {
if (entityIds.containsKey(key)) {
return entityIds.get(key);
}
return wrapped.a((Class<? extends Entity>) key);
}
@Override