mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-28 16:06:04 +00:00
Clean Up and start to work on flower models
This commit is contained in:
1 parent
fd7c73c354
commit
8b1bce6963
11 files changed
+317
-202
No files matched your search
@@ -13,7 +13,15 @@ public enum EnumFlowerStage implements ISpeciesType {
|
||||
EnumFlowerStage(final String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public static EnumFlowerStage getStage(IFlower flower){
|
||||
return getStage(flower.getAge());
|
||||
}
|
||||
|
||||
public static EnumFlowerStage getStage(int age){
|
||||
return age == 0 ? EnumFlowerStage.SEED : EnumFlowerStage.FLOWER;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
package binnie.botany.api;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import forestry.api.core.IModelManager;
|
||||
import forestry.api.genetics.IAlleleSpecies;
|
||||
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
public interface IAlleleFlowerSpecies extends IAlleleSpecies {
|
||||
IFlowerType getType();
|
||||
@@ -8,4 +15,14 @@ public interface IAlleleFlowerSpecies extends IAlleleSpecies {
|
||||
EnumAcidity getPH();
|
||||
|
||||
EnumMoisture getMoisture();
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
int getFlowerColour(EnumFlowerStage type, int renderPass);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@Nonnull
|
||||
ModelResourceLocation getFlowerModel(EnumFlowerStage type);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void registerModels(Item item, IModelManager manager, EnumFlowerStage type);
|
||||
}
|
||||
@@ -1,5 +1,13 @@
|
||||
package binnie.botany.api;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import forestry.api.core.IModelManager;
|
||||
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
//import net.minecraft.util.IIcon;
|
||||
|
||||
public interface IFlowerType {
|
||||
@@ -8,6 +16,12 @@ public interface IFlowerType {
|
||||
// IIcon getPetalIcon(final EnumFlowerStage p0, final boolean p1, final int p2);
|
||||
//
|
||||
// IIcon getVariantIcon(final EnumFlowerStage p0, final boolean p1, final int p2);
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
void registerModels(Item item, IModelManager manager, EnumFlowerStage type);
|
||||
|
||||
@Nonnull
|
||||
ModelResourceLocation getModel(EnumFlowerStage type);
|
||||
|
||||
int getID();
|
||||
|
||||
|
||||
Reference in new issue
Block a user