throw new ReflectedInstantiationException("Could not instantiate unregistered Codec! " + codecClass.getName(), e);
}
}
return codec;
}
<BUG>public <Codec extends de.cubeisland.engine.reflect.codec.Codec> void registerCodec(Codec codec)
{</BUG>
this.codecs.put(codec.getClass(), codec);
codec.setConverterManager(ConverterManager.emptyManager(this.defaultManager));
}

throw new ReflectedInstantiationException("Could not instantiate unregistered Codec! " + codecClass.getName(), e);
}
catch (IllegalAccessException e)
{
throw new ReflectedInstantiationException("Could not instantiate unregistered Codec! " + codecClass.getName(), e);
}
}
return codec;
}
public <C extends Codec> void registerCodec(C codec)
{
this.codecs.put(codec.getClass(), codec);
codec.setConverterManager(ConverterManager.emptyManager(this.defaultManager));
}
