Advertisement
Marikc0

Untitled

Dec 13th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. package marikc0.optionals.items;
  2.  
  3. import java.util.List;
  4. import cpw.mods.fml.relauncher.Side;
  5. import cpw.mods.fml.relauncher.SideOnly;
  6. import marikc0.optionals.Crops;
  7. import marikc0.optionals.Items;
  8. import marikc0.optionals.ModInfo;
  9. import net.minecraft.block.Block;
  10. import net.minecraft.client.renderer.texture.IconRegister;
  11. import net.minecraft.creativetab.CreativeTabs;
  12. import net.minecraft.entity.player.EntityPlayer;
  13. import net.minecraft.item.*;
  14. import net.minecraft.world.World;
  15. import net.minecraftforge.common.EnumPlantType;
  16. import net.minecraftforge.common.IPlantable;
  17.  
  18. /*
  19. * Use 1: In food.
  20. * Use 2: Fermented to rice wine (Forestry).
  21. */
  22.  
  23. public class ItemRiceSeed extends Item implements IPlantable {
  24.  
  25. public ItemRiceSeed(int id) {
  26. super(id);
  27. this.setMaxStackSize(Items.STACK_SEED);
  28. this.setCreativeTab(CreativeTabs.tabMaterials);
  29. this.setUnlocalizedName("itemRiceSeed");
  30. }
  31.  
  32. @Override
  33. @SideOnly(Side.CLIENT)
  34. public void registerIcons(IconRegister reg)
  35. {
  36. this.itemIcon = reg.registerIcon(Items.TEXTURE_LOCATION + ":" + "ItemRiceSeed");
  37. }
  38.  
  39. @Override
  40. public EnumPlantType getPlantType(World world, int x, int y, int z) {
  41. // TODO Auto-generated method stub
  42. return EnumPlantType.Beach;
  43. }
  44.  
  45. @Override
  46. public int getPlantID(World world, int x, int y, int z) {
  47. // TODO Auto-generated method stub
  48. return Crops.CropRice.blockID;
  49. }
  50.  
  51. @Override
  52. public int getPlantMetadata(World world, int x, int y, int z) {
  53. // TODO Auto-generated method stub
  54. return 0;
  55. }
  56.  
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement