@SuppressWarnings({"unchecked", "rawtypes"})
public EntityInventoryController<CommonEntity<T>> getInventoryController() {
if (isHooked()) {
return (EntityInventoryController<CommonEntity<T>>) getHandle(NMSEntityInventoryHook.class).getInventoryController();
}
final EntityInventoryController controller = new DefaultEntityInventoryController();
controller.bind(this);
return controller;
}