diff --git a/src/main/java/mods/natura/blocks/GrassSlab.java b/src/main/java/mods/natura/blocks/GrassSlab.java index 7a0704b3..19c294f6 100644 --- a/src/main/java/mods/natura/blocks/GrassSlab.java +++ b/src/main/java/mods/natura/blocks/GrassSlab.java @@ -3,7 +3,6 @@ import java.util.List; import java.util.Random; -import mods.natura.common.NContent; import net.minecraft.block.Block; import net.minecraft.block.BlockSlab; import net.minecraft.block.material.Material; @@ -20,6 +19,7 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import mods.natura.client.GrassColorizerAlternate; +import mods.natura.common.NContent; import mods.natura.common.NaturaTab; public class GrassSlab extends BlockSlab { @@ -42,8 +42,7 @@ public void registerBlockIcons(IIconRegister iconRegister) { } @Override - public String func_150002_b(int meta) - { + public String func_150002_b(int meta) { if (meta < 0 || meta >= blockType.length) meta = 0; return "block.soil." + blockType[meta] + ".slab"; } diff --git a/src/main/java/mods/natura/blocks/NSlabBase.java b/src/main/java/mods/natura/blocks/NSlabBase.java index 878163ff..ae77f87d 100644 --- a/src/main/java/mods/natura/blocks/NSlabBase.java +++ b/src/main/java/mods/natura/blocks/NSlabBase.java @@ -3,7 +3,6 @@ import java.util.List; import java.util.Random; -import mods.natura.common.NContent; import net.minecraft.block.BlockWoodSlab; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; @@ -11,16 +10,17 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; +import net.minecraftforge.common.util.ForgeDirection; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; +import mods.natura.common.NContent; import mods.natura.common.NaturaTab; -import net.minecraftforge.common.util.ForgeDirection; public class NSlabBase extends BlockWoodSlab { - public static String[] woodNames = new String[] { "eucalyptus", "sakura", "ghost", "redwood", "blood", - "bush", "maple", "silverbell", "purpleheart", "tiger", "willow", "darkwood", "fusewood" }; + public static String[] woodNames = new String[] { "eucalyptus", "sakura", "ghost", "redwood", "blood", "bush", + "maple", "silverbell", "purpleheart", "tiger", "willow", "darkwood", "fusewood" }; private final int group; public NSlabBase(boolean isDoubleSlab, int grp) { @@ -45,13 +45,11 @@ public Item getItemDropped(int meta, Random random, int fortune) { if (field_150004_a) { if (this == NContent.plankSlab1Double) return Item.getItemFromBlock(NContent.plankSlab1); else return Item.getItemFromBlock(NContent.plankSlab2); - } - else return Item.getItemFromBlock(this); + } else return Item.getItemFromBlock(this); } @Override - public String func_150002_b(int meta) - { + public String func_150002_b(int meta) { return "block.wood." + woodNames[getWoodMeta(meta)] + ".slab"; } @@ -85,8 +83,7 @@ public void getSubBlocks(Item id, CreativeTabs tab, List list) { list.add(new ItemStack(id, 1, iter)); } } - } - else { + } else { if (id != Item.getItemFromBlock(NContent.plankSlab2Double)) { for (int iter = 0; iter < 5; iter++) { list.add(new ItemStack(id, 1, iter)); @@ -96,18 +93,16 @@ public void getSubBlocks(Item id, CreativeTabs tab, List list) { } @Override - protected ItemStack createStackedBlock(int meta) - { + protected ItemStack createStackedBlock(int meta) { if (group == 1) { return new ItemStack(Item.getItemFromBlock(NContent.plankSlab1), 2, meta & 7); - } - else { + } else { return new ItemStack(Item.getItemFromBlock(NContent.plankSlab2), 2, meta & 7); } } private int getWoodMeta(int meta) { - meta = (meta & 7) + (group-1) * 8; + meta = (meta & 7) + (group - 1) * 8; if (meta < 0 || meta >= woodNames.length) meta = 0; return meta; } diff --git a/src/main/java/mods/natura/blocks/overrides/AlternateBookshelf.java b/src/main/java/mods/natura/blocks/overrides/AlternateBookshelf.java index 140de9e1..4ba46ba7 100644 --- a/src/main/java/mods/natura/blocks/overrides/AlternateBookshelf.java +++ b/src/main/java/mods/natura/blocks/overrides/AlternateBookshelf.java @@ -11,11 +11,11 @@ import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; +import net.minecraftforge.common.util.ForgeDirection; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import mods.natura.common.NContent; -import net.minecraftforge.common.util.ForgeDirection; public class AlternateBookshelf extends BlockBookshelf { diff --git a/src/main/java/mods/natura/blocks/overrides/AlternateFence.java b/src/main/java/mods/natura/blocks/overrides/AlternateFence.java index cb9b35fb..7524eb4c 100644 --- a/src/main/java/mods/natura/blocks/overrides/AlternateFence.java +++ b/src/main/java/mods/natura/blocks/overrides/AlternateFence.java @@ -12,12 +12,12 @@ import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; +import net.minecraftforge.common.util.ForgeDirection; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import mods.natura.client.FenceRender; import mods.natura.common.NContent; -import net.minecraftforge.common.util.ForgeDirection; public class AlternateFence extends BlockFence { diff --git a/src/main/java/mods/natura/blocks/trees/DarkTreeBlock.java b/src/main/java/mods/natura/blocks/trees/DarkTreeBlock.java index 6e1251cb..bccb4eae 100644 --- a/src/main/java/mods/natura/blocks/trees/DarkTreeBlock.java +++ b/src/main/java/mods/natura/blocks/trees/DarkTreeBlock.java @@ -1,7 +1,6 @@ package mods.natura.blocks.trees; import java.util.List; -import java.util.Random; import net.minecraft.block.Block; import net.minecraft.block.material.Material; diff --git a/src/main/java/mods/natura/blocks/trees/NDoor.java b/src/main/java/mods/natura/blocks/trees/NDoor.java index 59e8952f..c40c44b2 100644 --- a/src/main/java/mods/natura/blocks/trees/NDoor.java +++ b/src/main/java/mods/natura/blocks/trees/NDoor.java @@ -7,6 +7,7 @@ import net.minecraft.block.material.Material; import net.minecraft.client.renderer.IconFlipped; import net.minecraft.client.renderer.texture.IIconRegister; +import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; @@ -114,12 +115,7 @@ public IIcon getIcon(int par1, int par2) { } @Override - public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) { + public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z, EntityPlayer player) { return new ItemStack(NContent.doorItem, 1, meta); } - - @Override - public int getRenderType() { - return 7; - } } diff --git a/src/main/java/mods/natura/blocks/trees/NLeaves.java b/src/main/java/mods/natura/blocks/trees/NLeaves.java index 2fa9351d..b2bc83e9 100644 --- a/src/main/java/mods/natura/blocks/trees/NLeaves.java +++ b/src/main/java/mods/natura/blocks/trees/NLeaves.java @@ -4,8 +4,6 @@ import java.util.List; import java.util.Random; -import net.minecraft.block.Block; -import net.minecraft.block.material.Material; import net.minecraft.block.BlockLeaves; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; @@ -21,7 +19,6 @@ import cpw.mods.fml.relauncher.SideOnly; import mods.natura.common.NContent; import mods.natura.common.NaturaTab; -import net.minecraftforge.common.util.ForgeDirection; public class NLeaves extends BlockLeaves { diff --git a/src/main/java/mods/natura/blocks/trees/NLeavesNocolor.java b/src/main/java/mods/natura/blocks/trees/NLeavesNocolor.java index 7eabe047..eb56ad2b 100644 --- a/src/main/java/mods/natura/blocks/trees/NLeavesNocolor.java +++ b/src/main/java/mods/natura/blocks/trees/NLeavesNocolor.java @@ -13,12 +13,12 @@ import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; +import net.minecraftforge.common.util.ForgeDirection; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import mods.natura.Natura; import mods.natura.common.NContent; -import net.minecraftforge.common.util.ForgeDirection; public class NLeavesNocolor extends NLeaves { diff --git a/src/main/java/mods/natura/blocks/trees/Planks.java b/src/main/java/mods/natura/blocks/trees/Planks.java index 84878802..56be090e 100644 --- a/src/main/java/mods/natura/blocks/trees/Planks.java +++ b/src/main/java/mods/natura/blocks/trees/Planks.java @@ -11,7 +11,6 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; -import net.minecraft.world.World; import net.minecraftforge.common.util.ForgeDirection; import cpw.mods.fml.relauncher.Side; diff --git a/src/main/java/mods/natura/blocks/trees/SimpleLog.java b/src/main/java/mods/natura/blocks/trees/SimpleLog.java index 1eb5f8a9..9c53e557 100644 --- a/src/main/java/mods/natura/blocks/trees/SimpleLog.java +++ b/src/main/java/mods/natura/blocks/trees/SimpleLog.java @@ -9,7 +9,6 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; -import net.minecraft.world.World; import net.minecraftforge.common.util.ForgeDirection; import cpw.mods.fml.relauncher.Side; diff --git a/src/main/java/mods/natura/common/NContent.java b/src/main/java/mods/natura/common/NContent.java index 816ec287..fcb915d0 100644 --- a/src/main/java/mods/natura/common/NContent.java +++ b/src/main/java/mods/natura/common/NContent.java @@ -4,8 +4,6 @@ import java.util.HashMap; import java.util.List; -import mods.natura.blocks.*; -import mods.natura.items.blocks.*; import net.minecraft.block.Block; import net.minecraft.block.BlockDispenser; import net.minecraft.block.BlockPressurePlate.Sensitivity; @@ -37,6 +35,15 @@ import cpw.mods.fml.common.registry.EntityRegistry; import cpw.mods.fml.common.registry.GameRegistry; import mods.natura.Natura; +import mods.natura.blocks.CloudBlock; +import mods.natura.blocks.GrassBlock; +import mods.natura.blocks.GrassSlab; +import mods.natura.blocks.NButton; +import mods.natura.blocks.NFenceGate; +import mods.natura.blocks.NPressurePlate; +import mods.natura.blocks.NSlabBase; +import mods.natura.blocks.NStairs; +import mods.natura.blocks.NTrapdoor; import mods.natura.blocks.crops.BerryBush; import mods.natura.blocks.crops.CropBlock; import mods.natura.blocks.crops.FlowerBlock; @@ -97,6 +104,31 @@ import mods.natura.items.SeedFood; import mods.natura.items.SpawnEgg; import mods.natura.items.StickItem; +import mods.natura.items.blocks.BerryBushItem; +import mods.natura.items.blocks.CloudItem; +import mods.natura.items.blocks.DarkTreeItem; +import mods.natura.items.blocks.FenceItem; +import mods.natura.items.blocks.GlowshroomItem; +import mods.natura.items.blocks.GrassBlockItem; +import mods.natura.items.blocks.GrassSlabItem; +import mods.natura.items.blocks.LogTwoxTwoItem; +import mods.natura.items.blocks.NAlternateItem; +import mods.natura.items.blocks.NDoorItem; +import mods.natura.items.blocks.NLeavesDarkItem; +import mods.natura.items.blocks.NLeavesItem; +import mods.natura.items.blocks.NSaplingItem; +import mods.natura.items.blocks.NSlabBaseItem; +import mods.natura.items.blocks.NetherBerryBushItem; +import mods.natura.items.blocks.NetherGlassItem; +import mods.natura.items.blocks.NoColorLeavesItem; +import mods.natura.items.blocks.OverworldLeavesItem; +import mods.natura.items.blocks.OverworldSaplingItem; +import mods.natura.items.blocks.OverworldTreeItem; +import mods.natura.items.blocks.PlanksItem; +import mods.natura.items.blocks.RedwoodItem; +import mods.natura.items.blocks.SaguaroItem; +import mods.natura.items.blocks.TreeItem; +import mods.natura.items.blocks.WillowItem; import mods.natura.items.tools.FlintAndBlaze; import mods.natura.items.tools.NaturaArmor; import mods.natura.items.tools.NaturaBow; diff --git a/src/main/java/mods/natura/items/blocks/GrassSlabItem.java b/src/main/java/mods/natura/items/blocks/GrassSlabItem.java index 0626e17f..15de443a 100644 --- a/src/main/java/mods/natura/items/blocks/GrassSlabItem.java +++ b/src/main/java/mods/natura/items/blocks/GrassSlabItem.java @@ -1,9 +1,10 @@ package mods.natura.items.blocks; -import mods.natura.blocks.GrassSlab; import net.minecraft.block.Block; import net.minecraft.item.ItemSlab; +import mods.natura.blocks.GrassSlab; + public class GrassSlabItem extends ItemSlab { public GrassSlabItem(Block block, GrassSlab singleSlab, GrassSlab doubleSlab) { diff --git a/src/main/java/mods/natura/items/blocks/NSlabBaseItem.java b/src/main/java/mods/natura/items/blocks/NSlabBaseItem.java index 7a0302ef..110ac7b6 100644 --- a/src/main/java/mods/natura/items/blocks/NSlabBaseItem.java +++ b/src/main/java/mods/natura/items/blocks/NSlabBaseItem.java @@ -1,9 +1,9 @@ package mods.natura.items.blocks; -import mods.natura.blocks.NSlabBase; import net.minecraft.block.Block; import net.minecraft.item.ItemSlab; -import net.minecraft.item.ItemStack; + +import mods.natura.blocks.NSlabBase; public class NSlabBaseItem extends ItemSlab {