Begin 1.11 (compiles, does not run yet)

This commit is contained in:
mezz committed 2017-02-08 00:52:37 -08:00
1 parent 5310003659
commit 424fdaaf48
164 files changed
+1396 -1312

No files matched your search

@@ -62,24 +62,19 @@ public class AnalystPageClimate extends ControlAnalystPage {
y += 12;
final List<Biome> biomes = new ArrayList<>();
for (final Biome biome : Biome.EXPLORATION_BIOMES_LIST) { //TODO check
if (biome != null) {
if (BiomeDictionary.isBiomeRegistered(biome)) {
if (biome != Biomes.FROZEN_OCEAN) {
if (Tolerance.canTolerate(temp, EnumTemperature.getFromBiome(biome), tempTol)) {
if (Tolerance.canTolerate(humid, EnumHumidity.getFromValue(biome.getRainfall()), humidTol)) {
boolean match = false;
for (final Biome eBiome : biomes) {
if (biome.getBiomeName().contains(eBiome.getBiomeName()) && EnumHumidity.getFromValue(eBiome.getRainfall()) == EnumHumidity.getFromValue(biome.getRainfall()) && EnumTemperature.getFromBiome(eBiome) == EnumTemperature.getFromBiome(biome)) {
match = true;
}
}
if (!match) {
biomes.add(biome);
}
}
}
if (biome != null &&
biome != Biomes.FROZEN_OCEAN &&
Tolerance.canTolerate(temp, EnumTemperature.getFromBiome(biome), tempTol) &&
Tolerance.canTolerate(humid, EnumHumidity.getFromValue(biome.getRainfall()), humidTol)) {
boolean match = false;
for (final Biome eBiome : biomes) {
if (biome.getBiomeName().contains(eBiome.getBiomeName()) && EnumHumidity.getFromValue(eBiome.getRainfall()) == EnumHumidity.getFromValue(biome.getRainfall()) && EnumTemperature.getFromBiome(eBiome) == EnumTemperature.getFromBiome(biome)) {
match = true;
}
}
if (!match) {
biomes.add(biome);
}
}
}
final int maxBiomePerLine = (this.w() + 2 - 16) / 18;
@@ -206,7 +206,7 @@ public abstract class AnalystPageProduce extends ControlAnalystPage {
dy += 18;
}
final FluidStack fluid = FluidUtil.getFluidContained(soilStack);
soilStack.stackSize = 1;
soilStack.setCount(1);
final ControlItemDisplay display = new ControlItemDisplay(this, biomeListX + dx, y + dy, soilStack, fluid == null);
if (fluid != null) {
display.addTooltip(fluid.getLocalizedName());
@@ -21,40 +21,40 @@ public class ControlBiome extends Control implements ITooltip {
@Override
public void onRenderBackground(int guiWidth, int guiHeight) {
if (BiomeDictionary.isBiomeOfType(this.biome, BiomeDictionary.Type.MOUNTAIN)) {
if (BiomeDictionary.hasType(this.biome, BiomeDictionary.Type.MOUNTAIN)) {
this.iconCategory = "hills";
}
if (BiomeDictionary.isBiomeOfType(this.biome, BiomeDictionary.Type.HILLS)) {
if (BiomeDictionary.hasType(this.biome, BiomeDictionary.Type.HILLS)) {
this.iconCategory = "hills";
}
if (BiomeDictionary.isBiomeOfType(this.biome, BiomeDictionary.Type.SANDY)) {
if (BiomeDictionary.hasType(this.biome, BiomeDictionary.Type.SANDY)) {
this.iconCategory = "desert";
}
if (BiomeDictionary.isBiomeOfType(this.biome, BiomeDictionary.Type.SNOWY)) {
if (BiomeDictionary.hasType(this.biome, BiomeDictionary.Type.SNOWY)) {
this.iconCategory = "snow";
}
if (BiomeDictionary.isBiomeOfType(this.biome, BiomeDictionary.Type.FOREST)) {
if (BiomeDictionary.hasType(this.biome, BiomeDictionary.Type.FOREST)) {
this.iconCategory = "forest";
}
if (BiomeDictionary.isBiomeOfType(this.biome, BiomeDictionary.Type.SWAMP)) {
if (BiomeDictionary.hasType(this.biome, BiomeDictionary.Type.SWAMP)) {
this.iconCategory = "swamp";
}
if (BiomeDictionary.isBiomeOfType(this.biome, BiomeDictionary.Type.JUNGLE)) {
if (BiomeDictionary.hasType(this.biome, BiomeDictionary.Type.JUNGLE)) {
this.iconCategory = "jungle";
}
if (BiomeDictionary.isBiomeOfType(this.biome, BiomeDictionary.Type.COLD) && BiomeDictionary.isBiomeOfType(this.biome, BiomeDictionary.Type.FOREST)) {
if (BiomeDictionary.hasType(this.biome, BiomeDictionary.Type.COLD) && BiomeDictionary.hasType(this.biome, BiomeDictionary.Type.FOREST)) {
this.iconCategory = "taiga";
}
if (BiomeDictionary.isBiomeOfType(this.biome, BiomeDictionary.Type.MUSHROOM)) {
if (BiomeDictionary.hasType(this.biome, BiomeDictionary.Type.MUSHROOM)) {
this.iconCategory = "mushroom";
}
if (BiomeDictionary.isBiomeOfType(this.biome, BiomeDictionary.Type.OCEAN)) {
if (BiomeDictionary.hasType(this.biome, BiomeDictionary.Type.OCEAN)) {
this.iconCategory = "ocean";
}
if (BiomeDictionary.isBiomeOfType(this.biome, BiomeDictionary.Type.NETHER)) {
if (BiomeDictionary.hasType(this.biome, BiomeDictionary.Type.NETHER)) {
this.iconCategory = "nether";
}
if (BiomeDictionary.isBiomeOfType(this.biome, BiomeDictionary.Type.END)) {
if (BiomeDictionary.hasType(this.biome, BiomeDictionary.Type.END)) {
this.iconCategory = "end";
}
// final IIcon icon = TextureManager.getInstance().getDefault("habitats/" + this.iconCategory);
@@ -16,6 +16,8 @@ import forestry.api.arboriculture.EnumTreeChromosome;
import forestry.api.genetics.IChromosomeType;
import forestry.api.genetics.ISpeciesRoot;
import forestry.api.lepidopterology.EnumButterflyChromosome;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import javax.annotation.Nullable;
@@ -64,14 +66,11 @@ public class ControlChromosome extends Control implements IControlValue<IChromos
new ControlChromoPicker(this, 84, 54, EnumBeeChromosome.EFFECT);
} else if (root == Binnie.GENETICS.getTreeRoot()) {
new ControlChromoPicker(this, 48, 48, EnumTreeChromosome.SPECIES);
new ControlChromoPicker(this, 43, 12, EnumTreeChromosome.GROWTH);
new ControlChromoPicker(this, 43, 84, EnumTreeChromosome.HEIGHT);
new ControlChromoPicker(this, 25, 63, EnumTreeChromosome.FERTILITY);
new ControlChromoPicker(this, 72, 57, EnumTreeChromosome.FRUITS);
new ControlChromoPicker(this, 21, 43, EnumTreeChromosome.YIELD);
new ControlChromoPicker(this, 38, 32, EnumTreeChromosome.PLANT);
new ControlChromoPicker(this, 15, 17, EnumTreeChromosome.SAPPINESS);
new ControlChromoPicker(this, 75, 78, EnumTreeChromosome.TERRITORY);
new ControlChromoPicker(this, 67, 15, EnumTreeChromosome.EFFECT);
new ControlChromoPicker(this, 70, 34, EnumTreeChromosome.MATURATION);
new ControlChromoPicker(this, 45, 67, EnumTreeChromosome.GIRTH);
@@ -119,6 +118,7 @@ public class ControlChromosome extends Control implements IControlValue<IChromos
}
@Override
@SideOnly(Side.CLIENT)
public void onRenderBackground(int guiWidth, int guiHeight) {
if (this.species == null) {
return;