use of com.infinityraider.agricraft.api.v1.content.items.IAgriJournalItem in project AgriCraft by AgriCraft.
the class TileEntitySeedAnalyzer method addDebugInfo.
protected void addDebugInfo(Consumer<String> consumer) {
ItemStack journalStack = this.getJournal();
if (journalStack.isEmpty() || !(journalStack.getItem() instanceof IAgriJournalItem)) {
consumer.accept("No journal present");
} else {
IAgriJournalItem journalItem = (IAgriJournalItem) journalStack.getItem();
consumer.accept("Journal (" + journalItem.getDiscoveredSeeds(journalStack).size() + " plants):");
for (IAgriPlant plant : journalItem.getDiscoveredSeeds(journalStack)) {
consumer.accept(" - " + plant.getId());
}
}
}
Aggregations