port to forestry 4.2

This commit is contained in:
marcin212 committed 2016-10-20 02:56:31 +02:00
1 parent dbc5c1a564
commit f969f63b66
3697 files changed
+78372

No files matched your search

@@ -0,0 +1,48 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.botany.genetics;
import binnie.botany.api.IFlowerColour;
import binnie.botany.api.IColourMix;
public class ColourMix implements IColourMix
{
IFlowerColour colour1;
IFlowerColour colour2;
IFlowerColour result;
int chance;
@Override
public IFlowerColour getColour1() {
return this.colour1;
}
@Override
public IFlowerColour getColour2() {
return this.colour2;
}
@Override
public boolean isMutation(final IFlowerColour a, final IFlowerColour b) {
return (a == this.colour1 && b == this.colour2) || (a == this.colour2 && b == this.colour1);
}
@Override
public int getChance() {
return this.chance;
}
@Override
public IFlowerColour getResult() {
return this.result;
}
public ColourMix(final IFlowerColour colour1, final IFlowerColour colour2, final IFlowerColour result, final int chance) {
this.colour1 = colour1;
this.colour2 = colour2;
this.result = result;
this.chance = chance;
}
}