Search in sources :

Example 6 with IApiaristTracker

use of forestry.api.apiculture.IApiaristTracker in project ForestryMC by ForestryMC.

the class BeeStatsSaveHelper method addExtraInfo.

@Override
public void addExtraInfo(Collection<String> statistics, IBreedingTracker breedingTracker) {
    IApiaristTracker tracker = (IApiaristTracker) breedingTracker;
    String discoveredLine = Translator.translateToLocal("for.chat.command.forestry.stats.save.key.discovered") + ":";
    statistics.add(discoveredLine);
    statistics.add(StringUtil.line(discoveredLine.length()));
    String queen = Translator.translateToLocal("for.bees.grammar.queen.type");
    String princess = Translator.translateToLocal("for.bees.grammar.princess.type");
    String drone = Translator.translateToLocal("for.bees.grammar.drone.type");
    statistics.add(queen + ":\t\t" + tracker.getQueenCount());
    statistics.add(princess + ":\t" + tracker.getPrincessCount());
    statistics.add(drone + ":\t\t" + tracker.getDroneCount());
    statistics.add("");
}
Also used : IApiaristTracker(forestry.api.apiculture.IApiaristTracker)

Aggregations

IApiaristTracker (forestry.api.apiculture.IApiaristTracker)6 World (net.minecraft.world.World)2 GameProfile (com.mojang.authlib.GameProfile)1 IAlleleBeeSpecies (forestry.api.apiculture.IAlleleBeeSpecies)1 IBee (forestry.api.apiculture.IBee)1 IBeeGenome (forestry.api.apiculture.IBeeGenome)1 IBeeHousingInventory (forestry.api.apiculture.IBeeHousingInventory)1 IBeeMutation (forestry.api.apiculture.IBeeMutation)1 IBeekeepingMode (forestry.api.apiculture.IBeekeepingMode)1 IChromosome (forestry.api.genetics.IChromosome)1 IMutation (forestry.api.genetics.IMutation)1 ArrayList (java.util.ArrayList)1 Stack (java.util.Stack)1 Nullable (javax.annotation.Nullable)1 ItemStack (net.minecraft.item.ItemStack)1