Some reformat code for 1.11.2 source (#84)

* Optimized imports

* Some code reformat

* Some refactoring and code reformat

* Some code reformat
This commit is contained in:
Alexander Kornilov authored and mezz committed 2017-06-01 00:48:08 -07:00
1 parent 886c36a308
commit c3809fbc27
508 files changed
+6677 -6238

No files matched your search

@@ -22,6 +22,8 @@ import java.util.List;
public class BlockExtraBeeHive extends Block {
public static final PropertyEnum<EnumHiveType> hiveType = PropertyEnum.create("type", EnumHiveType.class);
public BlockExtraBeeHive() {
super(ExtraBees.materialBeehive);
this.setLightLevel(0.2f);
@@ -31,8 +33,6 @@ public class BlockExtraBeeHive extends Block {
this.setCreativeTab(Tabs.tabApiculture);
}
public static final PropertyEnum<EnumHiveType> hiveType = PropertyEnum.create("type", EnumHiveType.class);
public String getUnlocalizedName(final ItemStack itemStack) {
return "extrabees.block.hive." + itemStack.getItemDamage();
}
@@ -70,28 +70,27 @@ public class BlockExtraBeeHive extends Block {
Collections.shuffle(dropList);
int tries = 0;
//TODO HIVE DROP
// for (boolean hasPrincess = false; tries <= 10 && !hasPrincess; hasPrincess = true) {
// ++tries;
// for (final IHiveDrop drop : dropList) {
// if (world.rand.nextInt(100) < drop.getChance(world, x, y, z)) {
// ret.add(drop.getPrincess(world, x, y, z, fortune));
// break;
// }
// }
// }
// for (final IHiveDrop drop : dropList) {
// if (world.rand.nextInt(100) < drop.getChance(world, x, y, z)) {
// ret.addAll(drop.getDrones(world, x, y, z, fortune));
// break;
// }
// }
// for (final IHiveDrop drop : dropList) {
// if (world.rand.nextInt(100) < drop.getChance(world, x, y, z)) {
// ret.addAll(drop.getAdditional(world, x, y, z, fortune));
// break;
// }
// }
/*for (boolean hasPrincess = false; tries <= 10 && !hasPrincess; hasPrincess = true) {
++tries;
for (final IHiveDrop drop : dropList) {
if (world.rand.nextInt(100) < drop.getChance(world, x, y, z)) {
ret.add(drop.getPrincess(world, x, y, z, fortune));
break;
}
}
}
for (final IHiveDrop drop : dropList) {
if (world.rand.nextInt(100) < drop.getChance(world, x, y, z)) {
ret.addAll(drop.getDrones(world, x, y, z, fortune));
break;
}
}
for (final IHiveDrop drop : dropList) {
if (world.rand.nextInt(100) < drop.getChance(world, x, y, z)) {
ret.addAll(drop.getAdditional(world, x, y, z, fortune));
break;
}
}*/
return ret;
}
}