mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-23 21:49:49 +00:00
Add decorative leaves and food models
This commit is contained in:
1 parent
31d7d6e76e
commit
192943cb3e
121 files changed
+1589
-542
No files matched your search
@@ -0,0 +1,34 @@
|
||||
package binnie.extratrees.genetics;
|
||||
|
||||
import binnie.extratrees.block.ModuleBlocks;
|
||||
import forestry.api.arboriculture.EnumTreeChromosome;
|
||||
import forestry.api.arboriculture.IAlleleTreeSpecies;
|
||||
import forestry.api.arboriculture.ILeafProvider;
|
||||
import forestry.api.genetics.IAllele;
|
||||
import forestry.arboriculture.PluginArboriculture;
|
||||
import forestry.arboriculture.genetics.LeafProvider;
|
||||
import forestry.arboriculture.genetics.TreeDefinition;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ETLeafProvider implements ILeafProvider {
|
||||
|
||||
private IAlleleTreeSpecies treeSpecies;
|
||||
|
||||
public ETLeafProvider() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(IAlleleTreeSpecies treeSpecies) {
|
||||
this.treeSpecies = treeSpecies;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getDecorativeLeaves() {
|
||||
IAllele allele = treeSpecies;
|
||||
if(allele == null){
|
||||
allele = TreeDefinition.Oak.getTemplate()[EnumTreeChromosome.SPECIES.ordinal()];
|
||||
}
|
||||
return ModuleBlocks.getDecorativeLeaves(allele.getUID());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user