List<Class<?>> callbacks = new ArrayList<Class<?>>();
callbacks.add(NMSEntityHookImpl.class);
if (IInventory.class.isAssignableFrom(this.nmsType.getType())) {
callbacks.add(NMSEntityInventoryHookImpl.class);
}
this.hookBuilder = new NMSEntityClassBuilder(this.nmsType.getType(), callbacks);
}
// Create a new instance
return (NMSEntityHook) this.hookBuilder.create(commonEntity);
}