mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 15:36:18 +00:00
Add Guide Book and Analyzer Screen (#2073)
This commit is contained in:
1 parent
b5a8740e4a
commit
8ba478d758
251 files changed
+7985
-2550
No files matched your search
@@ -49,9 +49,9 @@ import forestry.api.genetics.IAllele;
|
||||
import forestry.api.genetics.IAlyzerPlugin;
|
||||
import forestry.api.genetics.IChromosome;
|
||||
import forestry.api.genetics.IChromosomeType;
|
||||
import forestry.api.genetics.IDatabasePlugin;
|
||||
import forestry.api.genetics.IIndividual;
|
||||
import forestry.api.genetics.IMutation;
|
||||
import forestry.api.genetics.ISpeciesPlugin;
|
||||
import forestry.api.genetics.ISpeciesType;
|
||||
import forestry.apiculture.BeeHousingListener;
|
||||
import forestry.apiculture.BeeHousingModifier;
|
||||
@@ -176,6 +176,24 @@ public class BeeRoot extends SpeciesRoot implements IBeeRoot {
|
||||
return EnumBeeType.DRONE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ISpeciesType[] getTypes() {
|
||||
return EnumBeeType.values();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ISpeciesType getTypeForMutation(int position) {
|
||||
switch (position){
|
||||
case 0:
|
||||
return EnumBeeType.PRINCESS;
|
||||
case 1:
|
||||
return EnumBeeType.DRONE;
|
||||
case 2:
|
||||
return EnumBeeType.QUEEN;
|
||||
}
|
||||
return getIconType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDrone(ItemStack stack) {
|
||||
return getType(stack) == EnumBeeType.DRONE;
|
||||
@@ -385,7 +403,7 @@ public class BeeRoot extends SpeciesRoot implements IBeeRoot {
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public ISpeciesPlugin getSpeciesPlugin() {
|
||||
public IDatabasePlugin getSpeciesPlugin() {
|
||||
return BeePlugin.INSTANCE;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user