From d3d0178ef235e7c36febabf7b064b80821227e65 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 1 Oct 2015 23:20:31 +0200 Subject: [PATCH] Renamed INameableItem to IActAddItemOrBlock just because --- .../java/ellpeck/actuallyadditions/blocks/BlockBreaker.java | 4 ++-- .../ellpeck/actuallyadditions/blocks/BlockCanolaPress.java | 4 ++-- .../actuallyadditions/blocks/BlockCoalGenerator.java | 4 ++-- .../actuallyadditions/blocks/BlockCoffeeMachine.java | 4 ++-- .../ellpeck/actuallyadditions/blocks/BlockColoredLamp.java | 6 +++--- .../java/ellpeck/actuallyadditions/blocks/BlockCompost.java | 4 ++-- .../java/ellpeck/actuallyadditions/blocks/BlockDropper.java | 4 ++-- .../ellpeck/actuallyadditions/blocks/BlockEnergizer.java | 4 ++-- .../java/ellpeck/actuallyadditions/blocks/BlockFeeder.java | 4 ++-- .../actuallyadditions/blocks/BlockFermentingBarrel.java | 4 ++-- .../ellpeck/actuallyadditions/blocks/BlockFishingNet.java | 4 ++-- .../actuallyadditions/blocks/BlockFluidCollector.java | 4 ++-- .../ellpeck/actuallyadditions/blocks/BlockFluidFlowing.java | 4 ++-- .../actuallyadditions/blocks/BlockFurnaceDouble.java | 4 ++-- .../ellpeck/actuallyadditions/blocks/BlockFurnaceSolar.java | 4 ++-- .../java/ellpeck/actuallyadditions/blocks/BlockGeneric.java | 4 ++-- .../ellpeck/actuallyadditions/blocks/BlockGiantChest.java | 4 ++-- .../actuallyadditions/blocks/BlockGreenhouseGlass.java | 4 ++-- .../java/ellpeck/actuallyadditions/blocks/BlockGrinder.java | 4 ++-- .../actuallyadditions/blocks/BlockHeatCollector.java | 4 ++-- .../ellpeck/actuallyadditions/blocks/BlockInputter.java | 4 ++-- .../ellpeck/actuallyadditions/blocks/BlockItemRepairer.java | 4 ++-- .../ellpeck/actuallyadditions/blocks/BlockLampPowerer.java | 4 ++-- .../blocks/BlockLavaFactoryController.java | 4 ++-- .../actuallyadditions/blocks/BlockLeafGenerator.java | 4 ++-- .../java/ellpeck/actuallyadditions/blocks/BlockMisc.java | 4 ++-- .../ellpeck/actuallyadditions/blocks/BlockOilGenerator.java | 4 ++-- .../ellpeck/actuallyadditions/blocks/BlockOreMagnet.java | 4 ++-- .../java/ellpeck/actuallyadditions/blocks/BlockPhantom.java | 4 ++-- .../actuallyadditions/blocks/BlockPhantomBooster.java | 4 ++-- .../java/ellpeck/actuallyadditions/blocks/BlockPlant.java | 4 ++-- .../java/ellpeck/actuallyadditions/blocks/BlockSlabs.java | 4 ++-- .../ellpeck/actuallyadditions/blocks/BlockSmileyCloud.java | 4 ++-- .../java/ellpeck/actuallyadditions/blocks/BlockStair.java | 4 ++-- .../actuallyadditions/blocks/BlockTreasureChest.java | 4 ++-- .../ellpeck/actuallyadditions/blocks/BlockWildPlant.java | 4 ++-- .../ellpeck/actuallyadditions/blocks/BlockXPSolidifier.java | 4 ++-- .../blocks/metalists/TheColoredLampColors.java | 4 ++-- .../actuallyadditions/blocks/metalists/TheMiscBlocks.java | 4 ++-- .../actuallyadditions/blocks/metalists/TheWildPlants.java | 4 ++-- .../java/ellpeck/actuallyadditions/event/CraftEvent.java | 4 ++-- .../java/ellpeck/actuallyadditions/items/ItemArmorAA.java | 4 ++-- .../java/ellpeck/actuallyadditions/items/ItemBattery.java | 3 +-- .../java/ellpeck/actuallyadditions/items/ItemBooklet.java | 4 ++-- .../java/ellpeck/actuallyadditions/items/ItemBucketAA.java | 4 ++-- .../java/ellpeck/actuallyadditions/items/ItemCoffee.java | 4 ++-- .../ellpeck/actuallyadditions/items/ItemCoffeeBean.java | 4 ++-- .../actuallyadditions/items/ItemCrafterOnAStick.java | 4 ++-- .../java/ellpeck/actuallyadditions/items/ItemDrill.java | 3 +-- .../ellpeck/actuallyadditions/items/ItemDrillUpgrade.java | 4 ++-- src/main/java/ellpeck/actuallyadditions/items/ItemDust.java | 4 ++-- .../java/ellpeck/actuallyadditions/items/ItemEnergy.java | 3 ++- .../ellpeck/actuallyadditions/items/ItemFertilizer.java | 4 ++-- .../java/ellpeck/actuallyadditions/items/ItemFoods.java | 4 ++-- .../ellpeck/actuallyadditions/items/ItemGrowthRing.java | 3 +-- .../java/ellpeck/actuallyadditions/items/ItemHairyBall.java | 4 ++-- src/main/java/ellpeck/actuallyadditions/items/ItemJams.java | 4 ++-- .../java/ellpeck/actuallyadditions/items/ItemKnife.java | 4 ++-- .../ellpeck/actuallyadditions/items/ItemLeafBlower.java | 4 ++-- .../ellpeck/actuallyadditions/items/ItemMagnetRing.java | 3 +-- src/main/java/ellpeck/actuallyadditions/items/ItemMisc.java | 4 ++-- .../actuallyadditions/items/ItemPhantomConnector.java | 4 ++-- .../ellpeck/actuallyadditions/items/ItemPotionRing.java | 4 ++-- .../ellpeck/actuallyadditions/items/ItemResonantRice.java | 4 ++-- src/main/java/ellpeck/actuallyadditions/items/ItemSeed.java | 4 ++-- .../ellpeck/actuallyadditions/items/ItemSpecialDrop.java | 4 ++-- .../java/ellpeck/actuallyadditions/items/ItemTeleStaff.java | 3 +-- .../actuallyadditions/items/ItemWaterRemovalRing.java | 3 +-- .../ellpeck/actuallyadditions/items/ItemWingsOfTheBats.java | 4 ++-- .../ellpeck/actuallyadditions/items/metalists/TheDusts.java | 4 ++-- .../ellpeck/actuallyadditions/items/metalists/TheFoods.java | 4 ++-- .../ellpeck/actuallyadditions/items/metalists/TheJams.java | 4 ++-- .../actuallyadditions/items/metalists/TheMiscItems.java | 4 ++-- .../actuallyadditions/items/metalists/ThePotionRings.java | 4 ++-- .../actuallyadditions/items/metalists/TheSpecialDrops.java | 4 ++-- .../actuallyadditions/items/tools/ItemAllToolAA.java | 4 ++-- .../ellpeck/actuallyadditions/items/tools/ItemAxeAA.java | 4 ++-- .../ellpeck/actuallyadditions/items/tools/ItemHoeAA.java | 4 ++-- .../actuallyadditions/items/tools/ItemPickaxeAA.java | 4 ++-- .../ellpeck/actuallyadditions/items/tools/ItemShovelAA.java | 4 ++-- .../ellpeck/actuallyadditions/items/tools/ItemSwordAA.java | 4 ++-- src/main/java/ellpeck/actuallyadditions/util/BlockUtil.java | 4 ++-- .../util/{INameableItem.java => IActAddItemOrBlock.java} | 5 ++++- src/main/java/ellpeck/actuallyadditions/util/ItemUtil.java | 4 ++-- 84 files changed, 165 insertions(+), 167 deletions(-) rename src/main/java/ellpeck/actuallyadditions/util/{INameableItem.java => IActAddItemOrBlock.java} (77%) diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockBreaker.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockBreaker.java index d956b2d13..1ddedc42f 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockBreaker.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockBreaker.java @@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityBreaker; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.BlockPistonBase; @@ -31,7 +31,7 @@ import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; -public class BlockBreaker extends BlockContainerBase implements INameableItem{ +public class BlockBreaker extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon frontIcon; private IIcon topIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockCanolaPress.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockCanolaPress.java index 8e1b3a7e1..d5ff90fc9 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockCanolaPress.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockCanolaPress.java @@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityCanolaPress; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -28,7 +28,7 @@ import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class BlockCanolaPress extends BlockContainerBase implements INameableItem{ +public class BlockCanolaPress extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon topIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockCoalGenerator.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockCoalGenerator.java index 477b7fdc3..538efa0a3 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockCoalGenerator.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockCoalGenerator.java @@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityCoalGenerator; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -30,7 +30,7 @@ import net.minecraft.world.World; import java.util.Random; -public class BlockCoalGenerator extends BlockContainerBase implements INameableItem{ +public class BlockCoalGenerator extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon topIcon; private IIcon bottomIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockCoffeeMachine.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockCoffeeMachine.java index f8f553013..b8fb3c490 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockCoffeeMachine.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockCoffeeMachine.java @@ -16,7 +16,7 @@ import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityCoffeeMachine; import ellpeck.actuallyadditions.util.AssetUtil; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; @@ -31,7 +31,7 @@ import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; import net.minecraft.world.World; -public class BlockCoffeeMachine extends BlockContainerBase implements INameableItem{ +public class BlockCoffeeMachine extends BlockContainerBase implements IActAddItemOrBlock{ public BlockCoffeeMachine(){ super(Material.rock); diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockColoredLamp.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockColoredLamp.java index 8add1e471..ac0713044 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockColoredLamp.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockColoredLamp.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.blocks.metalists.TheColoredLampColors; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import ellpeck.actuallyadditions.util.StringUtil; import net.minecraft.block.Block; @@ -33,7 +33,7 @@ import net.minecraftforge.oredict.OreDictionary; import java.util.List; import java.util.Random; -public class BlockColoredLamp extends Block implements INameableItem{ +public class BlockColoredLamp extends Block implements IActAddItemOrBlock{ public static TheColoredLampColors[] allLampTypes = TheColoredLampColors.values(); @@ -128,7 +128,7 @@ public class BlockColoredLamp extends Block implements INameableItem{ @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister iconReg){ for(int i = 0; i < allLampTypes.length; i++){ - this.textures[i] = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + ((INameableItem)InitBlocks.blockColoredLamp).getName() + allLampTypes[i].name + (isOn ? "On" : "")); + this.textures[i] = iconReg.registerIcon(ModUtil.MOD_ID_LOWER + ":" + ((IActAddItemOrBlock)InitBlocks.blockColoredLamp).getName() + allLampTypes[i].name + (isOn ? "On" : "")); } } diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockCompost.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockCompost.java index ca7971211..0e467ac91 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockCompost.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockCompost.java @@ -18,7 +18,7 @@ import ellpeck.actuallyadditions.items.ItemMisc; import ellpeck.actuallyadditions.items.metalists.TheMiscItems; import ellpeck.actuallyadditions.tile.TileEntityCompost; import ellpeck.actuallyadditions.util.AssetUtil; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; @@ -35,7 +35,7 @@ import net.minecraft.world.World; import java.util.List; -public class BlockCompost extends BlockContainerBase implements INameableItem{ +public class BlockCompost extends BlockContainerBase implements IActAddItemOrBlock{ public BlockCompost(){ super(Material.wood); diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockDropper.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockDropper.java index 46942158a..84170982e 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockDropper.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockDropper.java @@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityDropper; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.BlockPistonBase; @@ -31,7 +31,7 @@ import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; -public class BlockDropper extends BlockContainerBase implements INameableItem{ +public class BlockDropper extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon frontIcon; private IIcon topIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockEnergizer.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockEnergizer.java index 084aad25e..759e0de13 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockEnergizer.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockEnergizer.java @@ -16,7 +16,7 @@ import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityEnergizer; import ellpeck.actuallyadditions.tile.TileEntityEnervator; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -29,7 +29,7 @@ import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class BlockEnergizer extends BlockContainerBase implements INameableItem{ +public class BlockEnergizer extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon topIcon; private IIcon sideIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFeeder.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFeeder.java index 2b2b58070..90f691e66 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFeeder.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFeeder.java @@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityFeeder; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -28,7 +28,7 @@ import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class BlockFeeder extends BlockContainerBase implements INameableItem{ +public class BlockFeeder extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon topIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFermentingBarrel.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFermentingBarrel.java index 0d5728741..ec1361064 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFermentingBarrel.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFermentingBarrel.java @@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityFermentingBarrel; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -28,7 +28,7 @@ import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class BlockFermentingBarrel extends BlockContainerBase implements INameableItem{ +public class BlockFermentingBarrel extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon iconTop; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFishingNet.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFishingNet.java index 0fdf29804..1365d8f7c 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFishingNet.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFishingNet.java @@ -14,7 +14,7 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.tile.TileEntityFishingNet; import ellpeck.actuallyadditions.util.AssetUtil; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; @@ -26,7 +26,7 @@ import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class BlockFishingNet extends BlockContainerBase implements INameableItem{ +public class BlockFishingNet extends BlockContainerBase implements IActAddItemOrBlock{ public BlockFishingNet(){ super(Material.wood); diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFluidCollector.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFluidCollector.java index f16d4be84..ef28a7bd7 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFluidCollector.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFluidCollector.java @@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityFluidCollector; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.BlockPistonBase; @@ -31,7 +31,7 @@ import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; -public class BlockFluidCollector extends BlockContainerBase implements INameableItem{ +public class BlockFluidCollector extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon frontIcon; private IIcon topIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFluidFlowing.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFluidFlowing.java index 7de34221f..b8061ac62 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFluidFlowing.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFluidFlowing.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -26,7 +26,7 @@ import net.minecraft.world.World; import net.minecraftforge.fluids.BlockFluidClassic; import net.minecraftforge.fluids.Fluid; -public class BlockFluidFlowing extends BlockFluidClassic implements INameableItem{ +public class BlockFluidFlowing extends BlockFluidClassic implements IActAddItemOrBlock{ private String name; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFurnaceDouble.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFurnaceDouble.java index c6499a56f..da851e37b 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFurnaceDouble.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFurnaceDouble.java @@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityFurnaceDouble; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -33,7 +33,7 @@ import net.minecraft.world.World; import java.util.Random; -public class BlockFurnaceDouble extends BlockContainerBase implements INameableItem{ +public class BlockFurnaceDouble extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon topIcon; private IIcon onIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFurnaceSolar.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFurnaceSolar.java index 48f76770a..6a2142c83 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFurnaceSolar.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFurnaceSolar.java @@ -14,7 +14,7 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.tile.TileEntityFurnaceSolar; import ellpeck.actuallyadditions.util.AssetUtil; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; @@ -26,7 +26,7 @@ import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class BlockFurnaceSolar extends BlockContainerBase implements INameableItem{ +public class BlockFurnaceSolar extends BlockContainerBase implements IActAddItemOrBlock{ public BlockFurnaceSolar(){ super(Material.rock); diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockGeneric.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockGeneric.java index c93e38bbf..c21213594 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockGeneric.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockGeneric.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -22,7 +22,7 @@ import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; -public class BlockGeneric extends Block implements INameableItem{ +public class BlockGeneric extends Block implements IActAddItemOrBlock{ public String name; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockGiantChest.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockGiantChest.java index 2b6b9a992..b2d2c1eec 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockGiantChest.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockGiantChest.java @@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityGiantChest; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -28,7 +28,7 @@ import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class BlockGiantChest extends BlockContainerBase implements INameableItem{ +public class BlockGiantChest extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon topIcon; private IIcon bottomIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockGreenhouseGlass.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockGreenhouseGlass.java index d5122cc5f..a232cf7c6 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockGreenhouseGlass.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockGreenhouseGlass.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.tile.TileEntityGreenhouseGlass; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -27,7 +27,7 @@ import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; -public class BlockGreenhouseGlass extends BlockContainerBase implements INameableItem{ +public class BlockGreenhouseGlass extends BlockContainerBase implements IActAddItemOrBlock{ public BlockGreenhouseGlass(){ super(Material.rock); diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockGrinder.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockGrinder.java index c440435f1..59108ccd6 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockGrinder.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockGrinder.java @@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityGrinder; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -31,7 +31,7 @@ import net.minecraft.world.World; import java.util.Random; -public class BlockGrinder extends BlockContainerBase implements INameableItem{ +public class BlockGrinder extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon topIcon; private IIcon onIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockHeatCollector.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockHeatCollector.java index 0498e37ae..1a2195264 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockHeatCollector.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockHeatCollector.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.tile.TileEntityHeatCollector; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -25,7 +25,7 @@ import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class BlockHeatCollector extends BlockContainerBase implements INameableItem{ +public class BlockHeatCollector extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon topIcon; private IIcon bottomIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockInputter.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockInputter.java index 6dbe65116..f86701477 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockInputter.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockInputter.java @@ -16,7 +16,7 @@ import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityInputter; import ellpeck.actuallyadditions.tile.TileEntityInventoryBase; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import ellpeck.actuallyadditions.util.StringUtil; import net.minecraft.block.Block; @@ -32,7 +32,7 @@ import net.minecraft.world.World; import java.util.Random; -public class BlockInputter extends BlockContainerBase implements INameableItem{ +public class BlockInputter extends BlockContainerBase implements IActAddItemOrBlock{ public static final int NAME_FLAVOUR_AMOUNTS = 15; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockItemRepairer.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockItemRepairer.java index d0bbcab8b..feacc036d 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockItemRepairer.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockItemRepairer.java @@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityItemRepairer; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -29,7 +29,7 @@ import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; -public class BlockItemRepairer extends BlockContainerBase implements INameableItem{ +public class BlockItemRepairer extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon topIcon; private IIcon bottomIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockLampPowerer.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockLampPowerer.java index 6545a601d..917b246b6 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockLampPowerer.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockLampPowerer.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import ellpeck.actuallyadditions.util.WorldPos; import ellpeck.actuallyadditions.util.WorldUtil; @@ -29,7 +29,7 @@ import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.common.util.ForgeDirection; -public class BlockLampPowerer extends Block implements INameableItem{ +public class BlockLampPowerer extends Block implements IActAddItemOrBlock{ private IIcon frontIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockLavaFactoryController.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockLavaFactoryController.java index 7e7a1ecd9..8e79e6256 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockLavaFactoryController.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockLavaFactoryController.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.tile.TileEntityLavaFactoryController; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import ellpeck.actuallyadditions.util.StringUtil; import net.minecraft.block.Block; @@ -28,7 +28,7 @@ import net.minecraft.util.ChatComponentText; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class BlockLavaFactoryController extends BlockContainerBase implements INameableItem{ +public class BlockLavaFactoryController extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon topIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockLeafGenerator.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockLeafGenerator.java index 10b52ef67..f2f271d58 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockLeafGenerator.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockLeafGenerator.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.tile.TileEntityLeafGenerator; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -29,7 +29,7 @@ import net.minecraft.world.World; import java.util.Random; -public class BlockLeafGenerator extends BlockContainerBase implements INameableItem{ +public class BlockLeafGenerator extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon topIcon; private IIcon bottomIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockMisc.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockMisc.java index 44ebf275b..ff184ee65 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockMisc.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockMisc.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.blocks.metalists.TheMiscBlocks; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -27,7 +27,7 @@ import net.minecraft.util.IIcon; import java.util.List; -public class BlockMisc extends Block implements INameableItem{ +public class BlockMisc extends Block implements IActAddItemOrBlock{ public static final TheMiscBlocks[] allMiscBlocks = TheMiscBlocks.values(); public IIcon[] textures = new IIcon[allMiscBlocks.length]; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockOilGenerator.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockOilGenerator.java index 931deef8c..a644b80ab 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockOilGenerator.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockOilGenerator.java @@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityOilGenerator; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -30,7 +30,7 @@ import net.minecraft.world.World; import java.util.Random; -public class BlockOilGenerator extends BlockContainerBase implements INameableItem{ +public class BlockOilGenerator extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon topIcon; private IIcon bottomIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockOreMagnet.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockOreMagnet.java index aa8e53970..62f60a486 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockOreMagnet.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockOreMagnet.java @@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntityOreMagnet; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -28,7 +28,7 @@ import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class BlockOreMagnet extends BlockContainerBase implements INameableItem{ +public class BlockOreMagnet extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon topIcon; private IIcon bottomIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockPhantom.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockPhantom.java index be81d385a..e0ce7f89e 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockPhantom.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockPhantom.java @@ -17,7 +17,7 @@ import ellpeck.actuallyadditions.config.values.ConfigIntValues; import ellpeck.actuallyadditions.tile.IPhantomTile; import ellpeck.actuallyadditions.tile.TileEntityPhantomPlacer; import ellpeck.actuallyadditions.tile.TileEntityPhantomface; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import ellpeck.actuallyadditions.util.StringUtil; import net.minecraft.block.Block; @@ -34,7 +34,7 @@ import net.minecraft.util.IIcon; import net.minecraft.util.Vec3; import net.minecraft.world.World; -public class BlockPhantom extends BlockContainerBase implements INameableItem{ +public class BlockPhantom extends BlockContainerBase implements IActAddItemOrBlock{ public enum Type{ FACE, diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockPhantomBooster.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockPhantomBooster.java index bcad21b3f..a4e445c10 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockPhantomBooster.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockPhantomBooster.java @@ -14,7 +14,7 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.tile.TileEntityPhantomBooster; import ellpeck.actuallyadditions.util.AssetUtil; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; @@ -26,7 +26,7 @@ import net.minecraft.tileentity.TileEntity; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class BlockPhantomBooster extends BlockContainerBase implements INameableItem{ +public class BlockPhantomBooster extends BlockContainerBase implements IActAddItemOrBlock{ public BlockPhantomBooster(){ super(Material.rock); diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockPlant.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockPlant.java index 3f10271e8..7937e1f1d 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockPlant.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockPlant.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.BlockCrops; @@ -28,7 +28,7 @@ import net.minecraftforge.common.EnumPlantType; import java.util.Random; -public class BlockPlant extends BlockCrops implements INameableItem{ +public class BlockPlant extends BlockCrops implements IActAddItemOrBlock{ private IIcon[] textures; private String name; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockSlabs.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockSlabs.java index ac9be7bf9..3e3d2f1f8 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockSlabs.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockSlabs.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; @@ -28,7 +28,7 @@ import net.minecraft.world.World; import java.util.List; -public class BlockSlabs extends Block implements INameableItem{ +public class BlockSlabs extends Block implements IActAddItemOrBlock{ private String name; private Block fullBlock; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockSmileyCloud.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockSmileyCloud.java index d584566c2..56f68591e 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockSmileyCloud.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockSmileyCloud.java @@ -16,7 +16,7 @@ import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.tile.TileEntitySmileyCloud; import ellpeck.actuallyadditions.util.AssetUtil; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; @@ -32,7 +32,7 @@ import net.minecraft.util.MathHelper; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; -public class BlockSmileyCloud extends BlockContainerBase implements INameableItem{ +public class BlockSmileyCloud extends BlockContainerBase implements IActAddItemOrBlock{ public BlockSmileyCloud(){ super(Material.cloth); diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockStair.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockStair.java index 8ace9e775..97ee3779f 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockStair.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockStair.java @@ -10,14 +10,14 @@ package ellpeck.actuallyadditions.blocks; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.block.Block; import net.minecraft.block.BlockStairs; import net.minecraft.item.EnumRarity; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; -public class BlockStair extends BlockStairs implements INameableItem{ +public class BlockStair extends BlockStairs implements IActAddItemOrBlock{ private String name; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockTreasureChest.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockTreasureChest.java index 73c3ba333..89b102fe0 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockTreasureChest.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockTreasureChest.java @@ -14,7 +14,7 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.achievement.TheAchievements; import ellpeck.actuallyadditions.recipe.TreasureChestHandler; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -35,7 +35,7 @@ import net.minecraft.world.World; import java.util.Random; -public class BlockTreasureChest extends Block implements INameableItem{ +public class BlockTreasureChest extends Block implements IActAddItemOrBlock{ private IIcon topIcon; private IIcon bottomIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockWildPlant.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockWildPlant.java index 83d1f312f..645431e36 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockWildPlant.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockWildPlant.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.blocks.metalists.TheWildPlants; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.block.Block; import net.minecraft.block.BlockBush; import net.minecraft.block.material.Material; @@ -30,7 +30,7 @@ import net.minecraftforge.common.util.ForgeDirection; import java.util.ArrayList; import java.util.List; -public class BlockWildPlant extends BlockBush implements INameableItem{ +public class BlockWildPlant extends BlockBush implements IActAddItemOrBlock{ public static final TheWildPlants[] allWildPlants = TheWildPlants.values(); public IIcon[] textures = new IIcon[allWildPlants.length]; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockXPSolidifier.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockXPSolidifier.java index bba38c87a..8b7cd9c55 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockXPSolidifier.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockXPSolidifier.java @@ -17,7 +17,7 @@ import ellpeck.actuallyadditions.inventory.GuiHandler; import ellpeck.actuallyadditions.items.InitItems; import ellpeck.actuallyadditions.items.metalists.TheSpecialDrops; import ellpeck.actuallyadditions.tile.TileEntityXPSolidifier; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -34,7 +34,7 @@ import net.minecraft.util.MathHelper; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; -public class BlockXPSolidifier extends BlockContainerBase implements INameableItem{ +public class BlockXPSolidifier extends BlockContainerBase implements IActAddItemOrBlock{ private IIcon topIcon; private IIcon frontIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/metalists/TheColoredLampColors.java b/src/main/java/ellpeck/actuallyadditions/blocks/metalists/TheColoredLampColors.java index a26c0db61..1ac7ba69f 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/metalists/TheColoredLampColors.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/metalists/TheColoredLampColors.java @@ -10,9 +10,9 @@ package ellpeck.actuallyadditions.blocks.metalists; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; -public enum TheColoredLampColors implements INameableItem{ +public enum TheColoredLampColors implements IActAddItemOrBlock{ WHITE("White"), ORANGE("Orange"), diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/metalists/TheMiscBlocks.java b/src/main/java/ellpeck/actuallyadditions/blocks/metalists/TheMiscBlocks.java index 7735fa491..be6c7f8ea 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/metalists/TheMiscBlocks.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/metalists/TheMiscBlocks.java @@ -10,10 +10,10 @@ package ellpeck.actuallyadditions.blocks.metalists; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.item.EnumRarity; -public enum TheMiscBlocks implements INameableItem{ +public enum TheMiscBlocks implements IActAddItemOrBlock{ QUARTZ_PILLAR("BlackQuartzPillar", EnumRarity.rare), QUARTZ_CHISELED("BlackQuartzChiseled", EnumRarity.rare), diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/metalists/TheWildPlants.java b/src/main/java/ellpeck/actuallyadditions/blocks/metalists/TheWildPlants.java index f76480e95..a41b42287 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/metalists/TheWildPlants.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/metalists/TheWildPlants.java @@ -11,11 +11,11 @@ package ellpeck.actuallyadditions.blocks.metalists; import ellpeck.actuallyadditions.blocks.InitBlocks; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.block.Block; import net.minecraft.item.EnumRarity; -public enum TheWildPlants implements INameableItem{ +public enum TheWildPlants implements IActAddItemOrBlock{ CANOLA("Canola", EnumRarity.rare, InitBlocks.blockCanola), FLAX("Flax", EnumRarity.rare, InitBlocks.blockFlax), diff --git a/src/main/java/ellpeck/actuallyadditions/event/CraftEvent.java b/src/main/java/ellpeck/actuallyadditions/event/CraftEvent.java index 4d39915ba..b8fa438df 100644 --- a/src/main/java/ellpeck/actuallyadditions/event/CraftEvent.java +++ b/src/main/java/ellpeck/actuallyadditions/event/CraftEvent.java @@ -16,7 +16,7 @@ import ellpeck.actuallyadditions.achievement.InitAchievements; import ellpeck.actuallyadditions.achievement.TheAchievements; import ellpeck.actuallyadditions.config.values.ConfigBoolValues; import ellpeck.actuallyadditions.items.InitItems; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.playerdata.PersistentServerData; import net.minecraft.block.Block; import net.minecraft.entity.item.EntityItem; @@ -30,7 +30,7 @@ public class CraftEvent{ checkAchievements(event.crafting, event.player, InitAchievements.CRAFTING_ACH); if(ConfigBoolValues.GIVE_BOOKLET_ON_FIRST_CRAFT.isEnabled()){ - if(!event.player.worldObj.isRemote && event.crafting.getItem() != InitItems.itemLexicon && (event.crafting.getItem() instanceof INameableItem || Block.getBlockFromItem(event.crafting.getItem()) instanceof INameableItem)){ + if(!event.player.worldObj.isRemote && event.crafting.getItem() != InitItems.itemLexicon && (event.crafting.getItem() instanceof IActAddItemOrBlock || Block.getBlockFromItem(event.crafting.getItem()) instanceof IActAddItemOrBlock)){ PersistentServerData data = PersistentServerData.get(event.player); if(data != null && !data.bookGottenAlready){ data.bookGottenAlready = true; diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemArmorAA.java b/src/main/java/ellpeck/actuallyadditions/items/ItemArmorAA.java index 4a2aa9f32..83fa00a1e 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemArmorAA.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemArmorAA.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; @@ -22,7 +22,7 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraftforge.oredict.OreDictionary; -public class ItemArmorAA extends ItemArmor implements INameableItem{ +public class ItemArmorAA extends ItemArmor implements IActAddItemOrBlock{ private String repairItem; private String name; diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemBattery.java b/src/main/java/ellpeck/actuallyadditions/items/ItemBattery.java index de41af0a8..88563a76e 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemBattery.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemBattery.java @@ -12,14 +12,13 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.EnumRarity; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; -public class ItemBattery extends ItemEnergy implements INameableItem{ +public class ItemBattery extends ItemEnergy{ private String name; diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemBooklet.java b/src/main/java/ellpeck/actuallyadditions/items/ItemBooklet.java index 24c898148..3c9895fb4 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemBooklet.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemBooklet.java @@ -14,7 +14,7 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; @@ -24,7 +24,7 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class ItemBooklet extends Item implements INameableItem{ +public class ItemBooklet extends Item implements IActAddItemOrBlock{ public ItemBooklet(){ this.setMaxStackSize(1); diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemBucketAA.java b/src/main/java/ellpeck/actuallyadditions/items/ItemBucketAA.java index 9e8643a8b..d6a29aeaa 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemBucketAA.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemBucketAA.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.client.renderer.texture.IIconRegister; @@ -22,7 +22,7 @@ import net.minecraft.item.ItemBucket; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; -public class ItemBucketAA extends ItemBucket implements INameableItem{ +public class ItemBucketAA extends ItemBucket implements IActAddItemOrBlock{ private String name; diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemCoffee.java b/src/main/java/ellpeck/actuallyadditions/items/ItemCoffee.java index 51fab43d4..e16701cc2 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemCoffee.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemCoffee.java @@ -15,7 +15,7 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.config.values.ConfigIntValues; import ellpeck.actuallyadditions.items.metalists.TheMiscItems; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ItemUtil; import ellpeck.actuallyadditions.util.ModUtil; import ellpeck.actuallyadditions.util.StringUtil; @@ -33,7 +33,7 @@ import net.minecraft.world.World; import java.util.ArrayList; import java.util.List; -public class ItemCoffee extends ItemFood implements INameableItem{ +public class ItemCoffee extends ItemFood implements IActAddItemOrBlock{ public static ArrayList ingredients = new ArrayList(); diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemCoffeeBean.java b/src/main/java/ellpeck/actuallyadditions/items/ItemCoffeeBean.java index 0cd8b7c1d..85ee65254 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemCoffeeBean.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemCoffeeBean.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.EnumRarity; @@ -20,7 +20,7 @@ import net.minecraft.item.ItemFood; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; -public class ItemCoffeeBean extends ItemFood implements INameableItem{ +public class ItemCoffeeBean extends ItemFood implements IActAddItemOrBlock{ public ItemCoffeeBean(){ super(1, 1F, false); diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemCrafterOnAStick.java b/src/main/java/ellpeck/actuallyadditions/items/ItemCrafterOnAStick.java index ba3df6375..d278628e0 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemCrafterOnAStick.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemCrafterOnAStick.java @@ -14,7 +14,7 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; @@ -24,7 +24,7 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class ItemCrafterOnAStick extends Item implements INameableItem{ +public class ItemCrafterOnAStick extends Item implements IActAddItemOrBlock{ public ItemCrafterOnAStick(){ this.setMaxStackSize(1); diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java b/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java index 592b17ea2..f3aba2af6 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java @@ -19,7 +19,6 @@ import ellpeck.actuallyadditions.config.ConfigValues; import ellpeck.actuallyadditions.config.values.ConfigFloatValues; import ellpeck.actuallyadditions.config.values.ConfigIntValues; import ellpeck.actuallyadditions.inventory.GuiHandler; -import ellpeck.actuallyadditions.util.INameableItem; import ellpeck.actuallyadditions.util.ItemUtil; import ellpeck.actuallyadditions.util.ModUtil; import ellpeck.actuallyadditions.util.WorldUtil; @@ -47,7 +46,7 @@ import java.util.HashSet; import java.util.Set; @SuppressWarnings("unchecked") -public class ItemDrill extends ItemEnergy implements INameableItem{ +public class ItemDrill extends ItemEnergy{ public ItemDrill(){ super(500000, 5000); diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemDrillUpgrade.java b/src/main/java/ellpeck/actuallyadditions/items/ItemDrillUpgrade.java index 4d44a1c74..7d5a18c26 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemDrillUpgrade.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemDrillUpgrade.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; @@ -22,7 +22,7 @@ import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class ItemDrillUpgrade extends Item implements INameableItem{ +public class ItemDrillUpgrade extends Item implements IActAddItemOrBlock{ public enum UpgradeType{ SPEED, diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemDust.java b/src/main/java/ellpeck/actuallyadditions/items/ItemDust.java index 73ebcbde4..237471e79 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemDust.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemDust.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.items.metalists.TheDusts; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; @@ -24,7 +24,7 @@ import net.minecraft.util.IIcon; import java.util.List; -public class ItemDust extends Item implements INameableItem{ +public class ItemDust extends Item implements IActAddItemOrBlock{ public static final TheDusts[] allDusts = TheDusts.values(); diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemEnergy.java b/src/main/java/ellpeck/actuallyadditions/items/ItemEnergy.java index 0ae1c6be6..710902e46 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemEnergy.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemEnergy.java @@ -13,6 +13,7 @@ package ellpeck.actuallyadditions.items; import cofh.api.energy.ItemEnergyContainer; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; @@ -22,7 +23,7 @@ import net.minecraft.world.World; import java.util.List; -public abstract class ItemEnergy extends ItemEnergyContainer{ +public abstract class ItemEnergy extends ItemEnergyContainer implements IActAddItemOrBlock{ public ItemEnergy(int maxPower, int transfer){ super(maxPower, transfer); diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemFertilizer.java b/src/main/java/ellpeck/actuallyadditions/items/ItemFertilizer.java index 95412671b..972a581d9 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemFertilizer.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemFertilizer.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; @@ -23,7 +23,7 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class ItemFertilizer extends Item implements INameableItem{ +public class ItemFertilizer extends Item implements IActAddItemOrBlock{ @Override public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int par7, float par8, float par9, float par10){ diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemFoods.java b/src/main/java/ellpeck/actuallyadditions/items/ItemFoods.java index d0c389c47..3edd36c29 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemFoods.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemFoods.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.items.metalists.TheFoods; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; @@ -25,7 +25,7 @@ import net.minecraft.world.World; import java.util.List; -public class ItemFoods extends ItemFood implements INameableItem{ +public class ItemFoods extends ItemFood implements IActAddItemOrBlock{ public static final TheFoods[] allFoods = TheFoods.values(); public IIcon[] textures = new IIcon[allFoods.length]; diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemGrowthRing.java b/src/main/java/ellpeck/actuallyadditions/items/ItemGrowthRing.java index a585b0d23..113f03593 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemGrowthRing.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemGrowthRing.java @@ -13,7 +13,6 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.config.values.ConfigIntValues; -import ellpeck.actuallyadditions.util.INameableItem; import ellpeck.actuallyadditions.util.ModUtil; import ellpeck.actuallyadditions.util.WorldPos; import net.minecraft.block.Block; @@ -33,7 +32,7 @@ import net.minecraftforge.common.IPlantable; import java.util.ArrayList; import java.util.Random; -public class ItemGrowthRing extends ItemEnergy implements INameableItem{ +public class ItemGrowthRing extends ItemEnergy{ public ItemGrowthRing(){ super(1000000, 5000); diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemHairyBall.java b/src/main/java/ellpeck/actuallyadditions/items/ItemHairyBall.java index edc5d92c7..310bdc735 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemHairyBall.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemHairyBall.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.recipe.HairyBallHandler; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.item.EntityItem; @@ -27,7 +27,7 @@ import net.minecraft.world.World; import java.util.Random; -public class ItemHairyBall extends Item implements INameableItem{ +public class ItemHairyBall extends Item implements IActAddItemOrBlock{ @Override public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player){ diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemJams.java b/src/main/java/ellpeck/actuallyadditions/items/ItemJams.java index e6595b949..651d2f439 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemJams.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemJams.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.items.metalists.TheJams; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; @@ -30,7 +30,7 @@ import net.minecraft.world.World; import java.util.List; -public class ItemJams extends ItemFood implements INameableItem{ +public class ItemJams extends ItemFood implements IActAddItemOrBlock{ public static final TheJams[] allJams = TheJams.values(); public IIcon overlayIcon; diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemKnife.java b/src/main/java/ellpeck/actuallyadditions/items/ItemKnife.java index 89ba0fcce..b6547ca54 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemKnife.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemKnife.java @@ -14,7 +14,7 @@ import com.google.common.collect.Multimap; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.config.values.ConfigIntValues; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.SharedMonsterAttributes; @@ -24,7 +24,7 @@ import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; -public class ItemKnife extends Item implements INameableItem{ +public class ItemKnife extends Item implements IActAddItemOrBlock{ public ItemKnife(){ this.setMaxDamage(ConfigIntValues.KNIFE_DAMAGE.getValue()); diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemLeafBlower.java b/src/main/java/ellpeck/actuallyadditions/items/ItemLeafBlower.java index 54b095280..612c4db8b 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemLeafBlower.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemLeafBlower.java @@ -14,7 +14,7 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.config.values.ConfigBoolValues; import ellpeck.actuallyadditions.config.values.ConfigIntValues; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import ellpeck.actuallyadditions.util.WorldPos; import net.minecraft.block.Block; @@ -33,7 +33,7 @@ import net.minecraft.world.World; import java.util.ArrayList; import java.util.Collections; -public class ItemLeafBlower extends Item implements INameableItem{ +public class ItemLeafBlower extends Item implements IActAddItemOrBlock{ private final boolean isAdvanced; diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemMagnetRing.java b/src/main/java/ellpeck/actuallyadditions/items/ItemMagnetRing.java index 33e3b4254..839a32687 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemMagnetRing.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemMagnetRing.java @@ -13,7 +13,6 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.config.values.ConfigIntValues; -import ellpeck.actuallyadditions.util.INameableItem; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; @@ -28,7 +27,7 @@ import net.minecraft.world.World; import java.util.ArrayList; -public class ItemMagnetRing extends ItemEnergy implements INameableItem{ +public class ItemMagnetRing extends ItemEnergy{ public ItemMagnetRing(){ super(3000000, 5000); diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemMisc.java b/src/main/java/ellpeck/actuallyadditions/items/ItemMisc.java index 26213335d..66a60378f 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemMisc.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemMisc.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.items.metalists.TheMiscItems; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; @@ -24,7 +24,7 @@ import net.minecraft.util.IIcon; import java.util.List; -public class ItemMisc extends Item implements INameableItem{ +public class ItemMisc extends Item implements IActAddItemOrBlock{ public static final TheMiscItems[] allMiscItems = TheMiscItems.values(); public IIcon[] textures = new IIcon[allMiscItems.length]; diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemPhantomConnector.java b/src/main/java/ellpeck/actuallyadditions/items/ItemPhantomConnector.java index a9ef1befc..58b5a57b2 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemPhantomConnector.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemPhantomConnector.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.tile.IPhantomTile; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import ellpeck.actuallyadditions.util.StringUtil; import ellpeck.actuallyadditions.util.WorldPos; @@ -30,7 +30,7 @@ import net.minecraft.util.IIcon; import net.minecraft.world.World; import net.minecraftforge.common.DimensionManager; -public class ItemPhantomConnector extends Item implements INameableItem{ +public class ItemPhantomConnector extends Item implements IActAddItemOrBlock{ public ItemPhantomConnector(){ this.setMaxStackSize(1); diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemPotionRing.java b/src/main/java/ellpeck/actuallyadditions/items/ItemPotionRing.java index d35669251..2316e125d 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemPotionRing.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemPotionRing.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.items.metalists.ThePotionRings; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import ellpeck.actuallyadditions.util.StringUtil; import net.minecraft.client.renderer.texture.IIconRegister; @@ -29,7 +29,7 @@ import net.minecraft.world.World; import java.util.List; -public class ItemPotionRing extends Item implements INameableItem{ +public class ItemPotionRing extends Item implements IActAddItemOrBlock{ public static final ThePotionRings[] allRings = ThePotionRings.values(); diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemResonantRice.java b/src/main/java/ellpeck/actuallyadditions/items/ItemResonantRice.java index 7c500dbb2..9c4e1b078 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemResonantRice.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemResonantRice.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; @@ -22,7 +22,7 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.world.World; -public class ItemResonantRice extends Item implements INameableItem{ +public class ItemResonantRice extends Item implements IActAddItemOrBlock{ @Override public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player){ diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemSeed.java b/src/main/java/ellpeck/actuallyadditions/items/ItemSeed.java index d91f66a70..282747c4a 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemSeed.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemSeed.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.blocks.BlockPlant; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.client.renderer.texture.IIconRegister; @@ -25,7 +25,7 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; -public class ItemSeed extends ItemSeeds implements INameableItem{ +public class ItemSeed extends ItemSeeds implements IActAddItemOrBlock{ public Block plant; public String name; diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemSpecialDrop.java b/src/main/java/ellpeck/actuallyadditions/items/ItemSpecialDrop.java index e72b39324..1fc2cc9b3 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemSpecialDrop.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemSpecialDrop.java @@ -13,7 +13,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.items.metalists.TheSpecialDrops; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; @@ -27,7 +27,7 @@ import net.minecraft.world.World; import java.util.List; -public class ItemSpecialDrop extends Item implements INameableItem{ +public class ItemSpecialDrop extends Item implements IActAddItemOrBlock{ public static final int SOLID_XP_AMOUNT = 8; diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemTeleStaff.java b/src/main/java/ellpeck/actuallyadditions/items/ItemTeleStaff.java index f1c09eeeb..dc16eade5 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemTeleStaff.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemTeleStaff.java @@ -13,7 +13,6 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.config.values.ConfigIntValues; -import ellpeck.actuallyadditions.util.INameableItem; import ellpeck.actuallyadditions.util.ModUtil; import ellpeck.actuallyadditions.util.WorldUtil; import net.minecraft.client.renderer.texture.IIconRegister; @@ -29,7 +28,7 @@ import net.minecraft.util.Vec3; import net.minecraft.world.World; import net.minecraftforge.common.util.ForgeDirection; -public class ItemTeleStaff extends ItemEnergy implements INameableItem{ +public class ItemTeleStaff extends ItemEnergy{ public ItemTeleStaff(){ super(500000, 10000); diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemWaterRemovalRing.java b/src/main/java/ellpeck/actuallyadditions/items/ItemWaterRemovalRing.java index 331943563..2c664155f 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemWaterRemovalRing.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemWaterRemovalRing.java @@ -13,7 +13,6 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.config.values.ConfigIntValues; -import ellpeck.actuallyadditions.util.INameableItem; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; @@ -25,7 +24,7 @@ import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; import net.minecraft.world.World; -public class ItemWaterRemovalRing extends ItemEnergy implements INameableItem{ +public class ItemWaterRemovalRing extends ItemEnergy{ public ItemWaterRemovalRing(){ super(1000000, 5000); diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemWingsOfTheBats.java b/src/main/java/ellpeck/actuallyadditions/items/ItemWingsOfTheBats.java index c27ddb307..7a3734073 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemWingsOfTheBats.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemWingsOfTheBats.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.items; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.player.EntityPlayer; @@ -23,7 +23,7 @@ import net.minecraft.util.IIcon; import java.util.ArrayList; -public class ItemWingsOfTheBats extends Item implements INameableItem{ +public class ItemWingsOfTheBats extends Item implements IActAddItemOrBlock{ /** * A List containing all of the Players that can currently fly diff --git a/src/main/java/ellpeck/actuallyadditions/items/metalists/TheDusts.java b/src/main/java/ellpeck/actuallyadditions/items/metalists/TheDusts.java index a0732c27d..3a0ccab18 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/metalists/TheDusts.java +++ b/src/main/java/ellpeck/actuallyadditions/items/metalists/TheDusts.java @@ -10,11 +10,11 @@ package ellpeck.actuallyadditions.items.metalists; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.StringUtil; import net.minecraft.item.EnumRarity; -public enum TheDusts implements INameableItem{ +public enum TheDusts implements IActAddItemOrBlock{ IRON("Iron", 7826534, EnumRarity.common), GOLD("Gold", 14335744, EnumRarity.uncommon), diff --git a/src/main/java/ellpeck/actuallyadditions/items/metalists/TheFoods.java b/src/main/java/ellpeck/actuallyadditions/items/metalists/TheFoods.java index 62406f737..8765f66f8 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/metalists/TheFoods.java +++ b/src/main/java/ellpeck/actuallyadditions/items/metalists/TheFoods.java @@ -11,12 +11,12 @@ package ellpeck.actuallyadditions.items.metalists; import ellpeck.actuallyadditions.items.InitItems; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.init.Items; import net.minecraft.item.EnumRarity; import net.minecraft.item.ItemStack; -public enum TheFoods implements INameableItem{ +public enum TheFoods implements IActAddItemOrBlock{ CHEESE("Cheese", 1, 0.5F, false, 3, EnumRarity.common), PUMPKIN_STEW("PumpkinStew", 10, 1F, true, 30, EnumRarity.common), diff --git a/src/main/java/ellpeck/actuallyadditions/items/metalists/TheJams.java b/src/main/java/ellpeck/actuallyadditions/items/metalists/TheJams.java index 4c2067b29..e803c1801 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/metalists/TheJams.java +++ b/src/main/java/ellpeck/actuallyadditions/items/metalists/TheJams.java @@ -10,10 +10,10 @@ package ellpeck.actuallyadditions.items.metalists; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.item.EnumRarity; -public enum TheJams implements INameableItem{ +public enum TheJams implements IActAddItemOrBlock{ CU_BA_RA("CuBaRa", 6, 0.1F, EnumRarity.rare, 5, 12, 12595273), GRA_KI_BA("GraKiBa", 6, 0.1F, EnumRarity.rare, 16, 13, 5492820), diff --git a/src/main/java/ellpeck/actuallyadditions/items/metalists/TheMiscItems.java b/src/main/java/ellpeck/actuallyadditions/items/metalists/TheMiscItems.java index e262f8960..a221e606c 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/metalists/TheMiscItems.java +++ b/src/main/java/ellpeck/actuallyadditions/items/metalists/TheMiscItems.java @@ -10,10 +10,10 @@ package ellpeck.actuallyadditions.items.metalists; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.item.EnumRarity; -public enum TheMiscItems implements INameableItem{ +public enum TheMiscItems implements IActAddItemOrBlock{ PAPER_CONE("PaperCone", EnumRarity.common), MASHED_FOOD("MashedFood", EnumRarity.uncommon), diff --git a/src/main/java/ellpeck/actuallyadditions/items/metalists/ThePotionRings.java b/src/main/java/ellpeck/actuallyadditions/items/metalists/ThePotionRings.java index a8f68f18a..e067e8061 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/metalists/ThePotionRings.java +++ b/src/main/java/ellpeck/actuallyadditions/items/metalists/ThePotionRings.java @@ -10,14 +10,14 @@ package ellpeck.actuallyadditions.items.metalists; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.EnumRarity; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; -public enum ThePotionRings implements INameableItem{ +public enum ThePotionRings implements IActAddItemOrBlock{ SPEED(Potion.moveSpeed.getName(), 8171462, Potion.moveSpeed.getId(), 0, 1, 10, false, EnumRarity.uncommon, new ItemStack(Items.sugar)), //Slowness diff --git a/src/main/java/ellpeck/actuallyadditions/items/metalists/TheSpecialDrops.java b/src/main/java/ellpeck/actuallyadditions/items/metalists/TheSpecialDrops.java index 517721a68..0e2db16ef 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/metalists/TheSpecialDrops.java +++ b/src/main/java/ellpeck/actuallyadditions/items/metalists/TheSpecialDrops.java @@ -11,14 +11,14 @@ package ellpeck.actuallyadditions.items.metalists; import ellpeck.actuallyadditions.config.values.ConfigBoolValues; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import net.minecraft.entity.EntityCreature; import net.minecraft.entity.monster.EntityCreeper; import net.minecraft.entity.monster.EntityEnderman; import net.minecraft.entity.monster.EntitySkeleton; import net.minecraft.item.EnumRarity; -public enum TheSpecialDrops implements INameableItem{ +public enum TheSpecialDrops implements IActAddItemOrBlock{ SOLIDIFIED_EXPERIENCE("SolidifiedExperience", 40, 3, EntityCreature.class, EnumRarity.uncommon, ConfigBoolValues.EXPERIENCE_DROP.isEnabled()), BLOOD_FRAGMENT("BloodFragment", 15, 1, EntityCreature.class, EnumRarity.uncommon, ConfigBoolValues.BLOOD_DROP.isEnabled()), diff --git a/src/main/java/ellpeck/actuallyadditions/items/tools/ItemAllToolAA.java b/src/main/java/ellpeck/actuallyadditions/items/tools/ItemAllToolAA.java index 47da093d9..1cf632564 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/tools/ItemAllToolAA.java +++ b/src/main/java/ellpeck/actuallyadditions/items/tools/ItemAllToolAA.java @@ -15,7 +15,7 @@ import cpw.mods.fml.common.eventhandler.Event; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.config.ConfigValues; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.block.Block; import net.minecraft.block.material.Material; @@ -35,7 +35,7 @@ import java.util.HashSet; import java.util.Set; @SuppressWarnings("unchecked") -public class ItemAllToolAA extends ItemTool implements INameableItem{ +public class ItemAllToolAA extends ItemTool implements IActAddItemOrBlock{ private String name; private EnumRarity rarity; diff --git a/src/main/java/ellpeck/actuallyadditions/items/tools/ItemAxeAA.java b/src/main/java/ellpeck/actuallyadditions/items/tools/ItemAxeAA.java index bc1a8c3be..f1d197fbd 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/tools/ItemAxeAA.java +++ b/src/main/java/ellpeck/actuallyadditions/items/tools/ItemAxeAA.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.items.tools; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.EnumRarity; @@ -21,7 +21,7 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraftforge.oredict.OreDictionary; -public class ItemAxeAA extends ItemAxe implements INameableItem{ +public class ItemAxeAA extends ItemAxe implements IActAddItemOrBlock{ private String name; private EnumRarity rarity; diff --git a/src/main/java/ellpeck/actuallyadditions/items/tools/ItemHoeAA.java b/src/main/java/ellpeck/actuallyadditions/items/tools/ItemHoeAA.java index a8c819442..91b8867b5 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/tools/ItemHoeAA.java +++ b/src/main/java/ellpeck/actuallyadditions/items/tools/ItemHoeAA.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.items.tools; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.EnumRarity; @@ -21,7 +21,7 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraftforge.oredict.OreDictionary; -public class ItemHoeAA extends ItemHoe implements INameableItem{ +public class ItemHoeAA extends ItemHoe implements IActAddItemOrBlock{ private String name; private String oredictName; diff --git a/src/main/java/ellpeck/actuallyadditions/items/tools/ItemPickaxeAA.java b/src/main/java/ellpeck/actuallyadditions/items/tools/ItemPickaxeAA.java index eace18543..cbec8fd62 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/tools/ItemPickaxeAA.java +++ b/src/main/java/ellpeck/actuallyadditions/items/tools/ItemPickaxeAA.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.items.tools; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.EnumRarity; @@ -21,7 +21,7 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraftforge.oredict.OreDictionary; -public class ItemPickaxeAA extends ItemPickaxe implements INameableItem{ +public class ItemPickaxeAA extends ItemPickaxe implements IActAddItemOrBlock{ private String name; private EnumRarity rarity; diff --git a/src/main/java/ellpeck/actuallyadditions/items/tools/ItemShovelAA.java b/src/main/java/ellpeck/actuallyadditions/items/tools/ItemShovelAA.java index 66fea3143..c793bd455 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/tools/ItemShovelAA.java +++ b/src/main/java/ellpeck/actuallyadditions/items/tools/ItemShovelAA.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.items.tools; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.EnumRarity; @@ -21,7 +21,7 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraftforge.oredict.OreDictionary; -public class ItemShovelAA extends ItemSpade implements INameableItem{ +public class ItemShovelAA extends ItemSpade implements IActAddItemOrBlock{ private String name; private String oredictName; diff --git a/src/main/java/ellpeck/actuallyadditions/items/tools/ItemSwordAA.java b/src/main/java/ellpeck/actuallyadditions/items/tools/ItemSwordAA.java index b9a0cb748..b1dddde8d 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/tools/ItemSwordAA.java +++ b/src/main/java/ellpeck/actuallyadditions/items/tools/ItemSwordAA.java @@ -12,7 +12,7 @@ package ellpeck.actuallyadditions.items.tools; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -import ellpeck.actuallyadditions.util.INameableItem; +import ellpeck.actuallyadditions.util.IActAddItemOrBlock; import ellpeck.actuallyadditions.util.ModUtil; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.item.EnumRarity; @@ -21,7 +21,7 @@ import net.minecraft.item.ItemSword; import net.minecraft.util.IIcon; import net.minecraftforge.oredict.OreDictionary; -public class ItemSwordAA extends ItemSword implements INameableItem{ +public class ItemSwordAA extends ItemSword implements IActAddItemOrBlock{ private String name; private String oredictName; diff --git a/src/main/java/ellpeck/actuallyadditions/util/BlockUtil.java b/src/main/java/ellpeck/actuallyadditions/util/BlockUtil.java index 5241a5ee4..099806849 100644 --- a/src/main/java/ellpeck/actuallyadditions/util/BlockUtil.java +++ b/src/main/java/ellpeck/actuallyadditions/util/BlockUtil.java @@ -18,7 +18,7 @@ import net.minecraft.item.ItemBlock; public class BlockUtil{ public static String createUnlocalizedName(Block block){ - return ModUtil.MOD_ID_LOWER+"."+((INameableItem)block).getName(); + return ModUtil.MOD_ID_LOWER+"."+((IActAddItemOrBlock)block).getName(); } @SuppressWarnings("unchecked") @@ -28,7 +28,7 @@ public class BlockUtil{ for(Class sub : block.getClass().getDeclaredClasses()){ if(sub.getSuperclass() == ItemBlock.class){ - GameRegistry.registerBlock(block, sub, ((INameableItem)block).getName()); + GameRegistry.registerBlock(block, sub, ((IActAddItemOrBlock)block).getName()); break; } } diff --git a/src/main/java/ellpeck/actuallyadditions/util/INameableItem.java b/src/main/java/ellpeck/actuallyadditions/util/IActAddItemOrBlock.java similarity index 77% rename from src/main/java/ellpeck/actuallyadditions/util/INameableItem.java rename to src/main/java/ellpeck/actuallyadditions/util/IActAddItemOrBlock.java index de6cc7e95..1107971ee 100644 --- a/src/main/java/ellpeck/actuallyadditions/util/INameableItem.java +++ b/src/main/java/ellpeck/actuallyadditions/util/IActAddItemOrBlock.java @@ -10,7 +10,10 @@ package ellpeck.actuallyadditions.util; -public interface INameableItem{ +/** + * The indicator interface for any block or item that is part of ActuallyAdditions + */ +public interface IActAddItemOrBlock{ String getName(); diff --git a/src/main/java/ellpeck/actuallyadditions/util/ItemUtil.java b/src/main/java/ellpeck/actuallyadditions/util/ItemUtil.java index f31b44374..ef03fc903 100644 --- a/src/main/java/ellpeck/actuallyadditions/util/ItemUtil.java +++ b/src/main/java/ellpeck/actuallyadditions/util/ItemUtil.java @@ -39,11 +39,11 @@ public class ItemUtil{ public static void register(Item item, boolean addTab){ item.setCreativeTab(addTab ? CreativeTab.instance : null); item.setUnlocalizedName(createUnlocalizedName(item)); - GameRegistry.registerItem(item, ((INameableItem)item).getName()); + GameRegistry.registerItem(item, ((IActAddItemOrBlock)item).getName()); } public static String createUnlocalizedName(Item item){ - return ModUtil.MOD_ID_LOWER+"."+((INameableItem)item).getName(); + return ModUtil.MOD_ID_LOWER+"."+((IActAddItemOrBlock)item).getName(); } /**