Improve code readability in binnie.botany package

This commit is contained in:
kordum authored and mezz committed 2017-04-28 17:45:38 -07:00
1 parent e05bf8bb7b
commit b609d6688f
93 files changed
+3594 -3838

No files matched your search

@@ -1,16 +1,11 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api;
public enum EnumAcidity
{
public enum EnumAcidity {
Acid,
Neutral,
Alkaline;
public String getID() {
return this.name().toLowerCase();
return name().toLowerCase();
}
}
@@ -1,20 +1,15 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api;
import forestry.api.genetics.IAlleleFloat;
import forestry.api.genetics.IAlleleTolerance;
import forestry.api.genetics.IAlleleArea;
import forestry.api.genetics.IAlleleInteger;
import forestry.api.genetics.AlleleManager;
import forestry.api.genetics.ISpeciesRoot;
import forestry.api.genetics.IAllele;
import forestry.api.genetics.IAlleleArea;
import forestry.api.genetics.IAlleleFloat;
import forestry.api.genetics.IAlleleInteger;
import forestry.api.genetics.IAlleleTolerance;
import forestry.api.genetics.IChromosomeType;
import forestry.api.genetics.ISpeciesRoot;
public enum EnumFlowerChromosome implements IChromosomeType
{
public enum EnumFlowerChromosome implements IChromosomeType {
SPECIES(IAlleleFlowerSpecies.class),
PRIMARY(IAlleleInteger.class),
SECONDARY(IAlleleInteger.class),
@@ -30,18 +25,18 @@ public enum EnumFlowerChromosome implements IChromosomeType
private Class<? extends IAllele> cls;
private EnumFlowerChromosome(final Class<? extends IAllele> cls) {
EnumFlowerChromosome(Class<? extends IAllele> cls) {
this.cls = cls;
}
@Override
public Class<? extends IAllele> getAlleleClass() {
return this.cls;
return cls;
}
@Override
public String getName() {
return this.toString().toLowerCase();
return toString().toLowerCase();
}
@Override
@@ -1,28 +1,18 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api;
public enum EnumFlowerStage
{
public enum EnumFlowerStage {
FLOWER("Flower"),
SEED("Seed"),
POLLEN("Pollen"),
NONE("NONE");
public static final EnumFlowerStage[] VALUES;
String name;
protected String name;
private EnumFlowerStage(final String name) {
EnumFlowerStage(String name) {
this.name = name;
}
public String getName() {
return this.name;
}
static {
VALUES = values();
return name;
}
}
@@ -1,16 +1,11 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api;
public enum EnumMoisture
{
public enum EnumMoisture {
Dry,
Normal,
Damp;
public String getID() {
return this.name().toLowerCase();
return name().toLowerCase();
}
}
@@ -1,16 +1,11 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api;
public enum EnumSoilType
{
public enum EnumSoilType {
SOIL,
LOAM,
FLOWERBED;
public String getID() {
return this.name().toLowerCase();
return name().toLowerCase();
}
}
@@ -1,14 +1,9 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api;
import net.minecraft.world.World;
import forestry.api.genetics.IEffectData;
import forestry.api.genetics.IAlleleEffect;
import forestry.api.genetics.IEffectData;
import net.minecraft.world.World;
public interface IAlleleFlowerEffect extends IAlleleEffect
{
IEffectData doEffect(final IFlowerGenome p0, final IEffectData p1, final World p2, final int p3, final int p4, final int p5);
public interface IAlleleFlowerEffect extends IAlleleEffect {
IEffectData doEffect(IFlowerGenome genome, IEffectData storedData, World world, int x, int y, int z);
}
@@ -1,13 +1,8 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api;
import forestry.api.genetics.IAlleleSpecies;
public interface IAlleleFlowerSpecies extends IAlleleSpecies
{
public interface IAlleleFlowerSpecies extends IAlleleSpecies {
IFlowerType getType();
EnumAcidity getPH();
@@ -1,11 +1,6 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api;
import forestry.api.genetics.IBreedingTracker;
public interface IBotanistTracker extends IBreedingTracker
{
public interface IBotanistTracker extends IBreedingTracker {
}
@@ -1,18 +1,13 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api;
public interface IColourMix
{
IFlowerColour getColour1();
public interface IColourMix {
IFlowerColor getColor1();
IFlowerColour getColour2();
IFlowerColor getColor2();
boolean isMutation(final IFlowerColour p0, final IFlowerColour p1);
boolean isMutation(IFlowerColor color1, IFlowerColor color2);
int getChance();
IFlowerColour getResult();
IFlowerColor getResult();
}
+8 -13
View File
@@ -1,38 +1,33 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api;
import net.minecraft.world.World;
import forestry.api.genetics.IIndividual;
import net.minecraft.world.World;
public interface IFlower extends IIndividual
{
public interface IFlower extends IIndividual {
@Override
IFlowerGenome getGenome();
IFlowerGenome getMate();
void mate(final IFlower p0);
void mate(IFlower other);
int getAge();
void setAge(int age);
void age();
void setAge(final int p0);
IFlower getOffspring(final World p0);
IFlower getOffspring(World world);
int getMaxAge();
boolean isWilted();
void setWilted(final boolean p0);
void setWilted(boolean value);
boolean hasFlowered();
void setFlowered(final boolean p0);
void setFlowered(boolean value);
void removeMate();
}
@@ -1,14 +1,9 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api;
import forestry.api.genetics.IAlleleInteger;
public interface IFlowerColour
{
int getColor(final boolean p0);
public interface IFlowerColor {
int getColor(boolean dis);
IAlleleInteger getAllele();
@@ -1,26 +1,21 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api;
import forestry.api.core.EnumTemperature;
import forestry.api.genetics.EnumTolerance;
import forestry.api.genetics.IGenome;
public interface IFlowerGenome extends IGenome
{
public interface IFlowerGenome extends IGenome {
@Override
IAlleleFlowerSpecies getPrimary();
@Override
IAlleleFlowerSpecies getSecondary();
IFlowerColour getPrimaryColor();
IFlowerColor getPrimaryColor();
IFlowerColour getSecondaryColor();
IFlowerColor getSecondaryColor();
IFlowerColour getStemColor();
IFlowerColor getStemColor();
int getFertility();
@@ -38,9 +33,9 @@ public interface IFlowerGenome extends IGenome
float getSappiness();
boolean canTolerate(final EnumAcidity p0);
boolean canTolerate(EnumAcidity pH);
boolean canTolerate(final EnumMoisture p0);
boolean canTolerate(EnumMoisture moisture);
boolean canTolerate(final EnumTemperature p0);
boolean canTolerate(EnumTemperature temp);
}
@@ -1,14 +1,9 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api;
import forestry.api.genetics.IGenome;
import forestry.api.genetics.IAllele;
import forestry.api.genetics.IGenome;
import forestry.api.genetics.IMutation;
public interface IFlowerMutation extends IMutation
{
float getChance(final IAllele p0, final IAllele p1, final IGenome p2, final IGenome p3);
public interface IFlowerMutation extends IMutation {
float getChance(IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1);
}
@@ -1,48 +1,44 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api;
import java.util.Collection;
import com.mojang.authlib.GameProfile;
import net.minecraft.world.World;
import forestry.api.genetics.IAllele;
import net.minecraft.item.ItemStack;
import forestry.api.genetics.ISpeciesRoot;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public interface IFlowerRoot extends ISpeciesRoot
{
import java.util.Collection;
public interface IFlowerRoot extends ISpeciesRoot {
@Override
IFlower getMember(final ItemStack p0);
IFlower getMember(ItemStack stack);
@Override
IFlower templateAsIndividual(final IAllele[] p0);
IFlower templateAsIndividual(IAllele[] template);
@Override
IFlower templateAsIndividual(final IAllele[] p0, final IAllele[] p1);
IFlower templateAsIndividual(IAllele[] templateActive, IAllele[] templateInactive);
@Override
IFlowerGenome templateAsGenome(final IAllele[] p0);
IFlowerGenome templateAsGenome(IAllele[] template);
@Override
IFlowerGenome templateAsGenome(final IAllele[] p0, final IAllele[] p1);
IFlowerGenome templateAsGenome(IAllele[] templateActive, IAllele[] templateInactive);
@Override
IBotanistTracker getBreedingTracker(final World p0, final GameProfile p1);
IBotanistTracker getBreedingTracker(World world, GameProfile player);
@Override
Collection<IFlowerMutation> getMutations(final boolean p0);
Collection<IFlowerMutation> getMutations(boolean shuffle);
EnumFlowerStage getStageType(final ItemStack p0);
EnumFlowerStage getStageType(ItemStack stack);
IFlower getFlower(final World p0, final IFlowerGenome p1);
IFlower getFlower(World world, IFlowerGenome genome);
void addConversion(final ItemStack p0, final IAllele[] p1);
void addConversion(ItemStack stack, IAllele[] template);
IFlower getConversion(final ItemStack p0);
IFlower getConversion(ItemStack stack);
Collection<IColourMix> getColourMixes(final boolean p0);
Collection<IColourMix> getColourMixes(boolean shuffle);
void registerColourMix(final IColourMix p0);
void registerColourMix(IColourMix colorMix);
}
@@ -1,18 +1,13 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api;
import net.minecraft.util.IIcon;
public interface IFlowerType
{
IIcon getStem(final EnumFlowerStage p0, final boolean p1, final int p2);
public interface IFlowerType {
IIcon getStem(EnumFlowerStage stage, boolean flowered, int section);
IIcon getPetalIcon(final EnumFlowerStage p0, final boolean p1, final int p2);
IIcon getPetalIcon(EnumFlowerStage stage, boolean flowered, int section);
IIcon getVariantIcon(final EnumFlowerStage p0, final boolean p1, final int p2);
IIcon getVariantIcon(EnumFlowerStage stage, boolean flowered, int section);
int getID();
@@ -1,29 +1,24 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.api.gardening;
import binnie.botany.api.EnumSoilType;
import binnie.botany.api.EnumMoisture;
import binnie.botany.api.EnumAcidity;
import binnie.botany.api.EnumMoisture;
import binnie.botany.api.EnumSoilType;
import net.minecraft.world.World;
public interface IBlockSoil
{
EnumAcidity getPH(final World p0, final int p1, final int p2, final int p3);
public interface IBlockSoil {
EnumAcidity getPH(World world, int x, int y, int z);
EnumMoisture getMoisture(final World p0, final int p1, final int p2, final int p3);
EnumMoisture getMoisture(World world, int x, int y, int z);
EnumSoilType getType(final World p0, final int p1, final int p2, final int p3);
EnumSoilType getType(World world, int x, int y, int z);
boolean fertilise(final World p0, final int p1, final int p2, final int p3, final EnumSoilType p4);
boolean fertilise(World world, int x, int y, int z, EnumSoilType maxLevel);
boolean degrade(final World p0, final int p1, final int p2, final int p3, final EnumSoilType p4);
boolean degrade(World world, int x, int y, int z, EnumSoilType minLevel);
boolean setPH(final World p0, final int p1, final int p2, final int p3, final EnumAcidity p4);
boolean setPH(World world, int x, int y, int z, EnumAcidity pH);
boolean setMoisture(final World p0, final int p1, final int p2, final int p3, final EnumMoisture p4);
boolean setMoisture(World world, int x, int y, int z, EnumMoisture p4);
boolean resistsWeeds(final World p0, final int p1, final int p2, final int p3);
boolean resistsWeeds(World world, int x, int y, int z);
}