Random stuffs
Updated commands Added in a ritual hologram --Alex's code Added a Total Stones tooltip to the ritual diviner Gave the Alchemy Relay a null bounding box Added localizations to the blocks that didn't have any
This commit is contained in:
parent
003a65a51b
commit
31f552fe2d
87 changed files with 2513 additions and 682 deletions
|
@ -2,6 +2,7 @@ package WayofTime.alchemicalWizardry.common.achievements;
|
|||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.PlayerEvent;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.stats.Achievement;
|
||||
|
||||
|
@ -12,6 +13,11 @@ public class AchievementTrigger
|
|||
{
|
||||
ItemStack stack = event.pickedUp.getEntityItem();
|
||||
|
||||
for (Item item : AchievementsRegistry.list)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
if (stack != null && stack.getItem() instanceof IPickupAchievement)
|
||||
{
|
||||
Achievement achievement = ((IPickupAchievement) stack.getItem()).getAchievementOnPickup(stack, event.player, event.pickedUp);
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
package WayofTime.alchemicalWizardry.common.achievements;
|
||||
|
||||
import WayofTime.alchemicalWizardry.ModItems;
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class AchievementsRegistry
|
||||
{
|
||||
public static List<Item> list = new ArrayList();
|
||||
|
||||
public void addItemsToList()
|
||||
{
|
||||
list.add(ModItems.sacrificialDagger);
|
||||
}
|
||||
}
|
|
@ -7,5 +7,5 @@ import net.minecraft.stats.Achievement;
|
|||
|
||||
public interface ICraftAchievement
|
||||
{
|
||||
public Achievement getAchievementOnCraft(ItemStack stack, EntityPlayer player, IInventory matrix);
|
||||
Achievement getAchievementOnCraft(ItemStack stack, EntityPlayer player, IInventory matrix);
|
||||
}
|
||||
|
|
|
@ -7,5 +7,5 @@ import net.minecraft.stats.Achievement;
|
|||
|
||||
public interface IPickupAchievement
|
||||
{
|
||||
public Achievement getAchievementOnPickup(ItemStack stack, EntityPlayer player, EntityItem item);
|
||||
Achievement getAchievementOnPickup(ItemStack stack, EntityPlayer player, EntityItem item);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue