Fixed metadata on gear, waterturbine, and windturbine

This commit is contained in:
Robert S 2014-10-07 17:37:34 -04:00
parent 39f3f82ce0
commit db789cba2f
3 changed files with 11 additions and 17 deletions

View file

@ -1,23 +1,18 @@
package resonantinduction.mechanical.mech.gear
import java.util.List
import codechicken.lib.vec.{BlockCoord, Vector3}
import codechicken.microblock.FacePlacementGrid
import codechicken.multipart.{JItemMultiPart, MultiPartRegistry, PartMap, TMultiPart, TileMultipart}
import net.minecraft.creativetab.CreativeTabs
import net.minecraft.entity.player.EntityPlayer
import net.minecraft.item.Item
import net.minecraft.item.ItemStack
import net.minecraft.item.{Item, ItemStack}
import net.minecraft.tileentity.TileEntity
import net.minecraft.world.World
import resonant.lib.wrapper.WrapList._
import resonantinduction.core.prefab.part.IHighlight
import resonantinduction.mechanical.mech.gearshaft.PartGearShaft
import codechicken.lib.vec.BlockCoord
import codechicken.lib.vec.Vector3
import codechicken.microblock.FacePlacementGrid
import codechicken.multipart.JItemMultiPart
import codechicken.multipart.MultiPartRegistry
import codechicken.multipart.PartMap
import codechicken.multipart.TMultiPart
import codechicken.multipart.TileMultipart
import resonant.lib.wrapper.WrapList._
class ItemGear extends JItemMultiPart with IHighlight
{
@ -50,10 +45,9 @@ class ItemGear extends JItemMultiPart with IHighlight
override def getSubItems(itemID: Item, tab: CreativeTabs, listToAddTo: List[_])
{
for(i <- 0 to 3)
for (i <- 0 to 2)
{
listToAddTo.add(new ItemStack(itemID, 1, i))
}
listToAddTo.add(new ItemStack(itemID, 1, 10))
}

View file

@ -139,7 +139,7 @@ class TileWaterTurbine extends TileTurbine
override def getSubBlocks(par1: Item, par2CreativeTabs: CreativeTabs, par3List: List[_])
{
for (i <- 0 to 3)
for (i <- 0 to 2)
{
par3List.add(new ItemStack(par1, 1, i))
}

View file

@ -122,7 +122,7 @@ class TileWindTurbine extends TileTurbine
override def getSubBlocks(par1: Item, par2CreativeTabs: CreativeTabs, par3List: List[_])
{
for (i <- 0 to 3)
for (i <- 0 to 2)
{
par3List.add(new ItemStack(par1, 1, i))
}