-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17454c4
commit 8e0818b
Showing
150 changed files
with
13,448 additions
and
12,631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,45 @@ | ||
package ab; | ||
|
||
import net.minecraft.creativetab.CreativeTabs; | ||
|
||
import ab.common.core.proxy.CommonProxy; | ||
import cpw.mods.fml.common.Mod; | ||
import cpw.mods.fml.common.SidedProxy; | ||
import cpw.mods.fml.common.event.FMLInitializationEvent; | ||
import cpw.mods.fml.common.event.FMLPostInitializationEvent; | ||
import cpw.mods.fml.common.event.FMLPreInitializationEvent; | ||
import net.minecraft.creativetab.CreativeTabs; | ||
import net.minecraftforge.common.MinecraftForge; | ||
|
||
@Mod (modid = AdvancedBotany.modid, name="Advanced Botany", version = AdvancedBotany.version, dependencies = "required-after:Botania", guiFactory = "ab.client.core.handler.GuiABFactory") | ||
@Mod( | ||
modid = AdvancedBotany.modid, | ||
name = "Advanced Botany", | ||
version = AdvancedBotany.version, | ||
dependencies = "required-after:Botania", | ||
guiFactory = "ab.client.core.handler.GuiABFactory") | ||
public class AdvancedBotany { | ||
|
||
public static final String modid = "AdvancedBotany"; | ||
public static final String version = "1.3.1.5"; | ||
|
||
@Mod.Instance("AdvancedBotany") | ||
public static final String modid = "AdvancedBotany"; | ||
public static final String version = "1.3.1.5"; | ||
|
||
@Mod.Instance("AdvancedBotany") | ||
public static AdvancedBotany instance; | ||
@SidedProxy(clientSide = "ab.client.core.proxy.ClientProxy", serverSide = "ab.common.core.proxy.CommonProxy") | ||
|
||
@SidedProxy(clientSide = "ab.client.core.proxy.ClientProxy", serverSide = "ab.common.core.proxy.CommonProxy") | ||
public static CommonProxy proxy; | ||
@Mod.EventHandler | ||
public void preInit(FMLPreInitializationEvent event) { | ||
proxy.preInit(event); | ||
} | ||
|
||
@Mod.EventHandler | ||
public void init(FMLInitializationEvent event) { | ||
proxy.init(event); | ||
} | ||
|
||
@Mod.EventHandler | ||
public void postInit(FMLPostInitializationEvent event) { | ||
proxy.postInit(event); | ||
} | ||
public static final CreativeTabs tabAB = new AdvancedBotanyTab("tabAB"); | ||
|
||
@Mod.EventHandler | ||
public void preInit(FMLPreInitializationEvent event) { | ||
proxy.preInit(event); | ||
} | ||
|
||
@Mod.EventHandler | ||
public void init(FMLInitializationEvent event) { | ||
proxy.init(event); | ||
} | ||
|
||
@Mod.EventHandler | ||
public void postInit(FMLPostInitializationEvent event) { | ||
proxy.postInit(event); | ||
} | ||
|
||
public static final CreativeTabs tabAB = new AdvancedBotanyTab("tabAB"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
package ab; | ||
|
||
import ab.common.lib.register.BlockListAB; | ||
import ab.common.lib.register.ItemListAB; | ||
import cpw.mods.fml.relauncher.Side; | ||
import cpw.mods.fml.relauncher.SideOnly; | ||
import net.minecraft.creativetab.CreativeTabs; | ||
import net.minecraft.init.Items; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemBlock; | ||
|
||
import ab.common.lib.register.BlockListAB; | ||
import cpw.mods.fml.relauncher.Side; | ||
import cpw.mods.fml.relauncher.SideOnly; | ||
|
||
public class AdvancedBotanyTab extends CreativeTabs { | ||
|
||
public AdvancedBotanyTab(String str) { | ||
super(str); | ||
this.setNoTitle(); | ||
this.setBackgroundImageName("ab.png"); | ||
} | ||
@SideOnly(Side.CLIENT) | ||
public Item getTabIconItem() { | ||
return ItemBlock.getItemFromBlock(BlockListAB.blockABSpreader); | ||
} | ||
} | ||
public AdvancedBotanyTab(String str) { | ||
super(str); | ||
this.setNoTitle(); | ||
this.setBackgroundImageName("ab.png"); | ||
} | ||
|
||
@SideOnly(Side.CLIENT) | ||
public Item getTabIconItem() { | ||
return ItemBlock.getItemFromBlock(BlockListAB.blockABSpreader); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
package ab.api; | ||
|
||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.stats.Achievement; | ||
|
||
import vazkii.botania.api.item.IRelic; | ||
|
||
public class AchievementAB extends Achievement { | ||
|
||
public AchievementAB(String name, int x, int y, ItemStack icon, Achievement parent) { | ||
super("achievement.ab:" + name, "ab:" + name, x, y, icon, parent); | ||
AdvancedBotanyAPI.achievements.add(this); | ||
registerStat(); | ||
if(icon.getItem() instanceof IRelic) | ||
((IRelic)icon.getItem()).setBindAchievement(this); | ||
} | ||
|
||
public AchievementAB(String name, int x, int y, ItemStack icon, Achievement parent) { | ||
super("achievement.ab:" + name, "ab:" + name, x, y, icon, parent); | ||
AdvancedBotanyAPI.achievements.add(this); | ||
registerStat(); | ||
if (icon.getItem() instanceof IRelic) ((IRelic) icon.getItem()).setBindAchievement(this); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
package ab.api; | ||
|
||
import net.minecraft.util.ChunkCoordinates; | ||
|
||
import vazkii.botania.api.wand.IWandBindable; | ||
|
||
public interface IBoundRender extends IWandBindable { | ||
public ChunkCoordinates[] getBlocksCoord(); | ||
|
||
public ChunkCoordinates[] getBlocksCoord(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
package ab.api; | ||
|
||
import net.minecraft.item.ItemStack; | ||
|
||
import vazkii.botania.api.mana.IManaItem; | ||
|
||
public interface IRankItem extends IManaItem { | ||
public int getLevel(ItemStack stack); | ||
public int[] getLevels(); | ||
|
||
public int getLevel(ItemStack stack); | ||
|
||
public int[] getLevels(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.