public static boolean isOwnable(Class<? extends TileEntity> clazz) { for (SegmentTileEntity segment : segmentsTile.get(clazz)) { if (segment.retainsOwner()) { return true; } } return false; }