Advertisement
WitherDoggie

Crop Code

May 14th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. package com.wither.withermod.blocks.crops;
  2.  
  3. import com.wither.withermod.items.ItemRegistry;
  4.  
  5. import net.minecraft.block.BlockCrops;
  6. import net.minecraft.creativetab.CreativeTabs;
  7. import net.minecraft.item.Item;
  8.  
  9. public class Corn extends BlockCrops{
  10.        
  11.     public Corn(String name){
  12.        
  13.         this.setUnlocalizedName(name);
  14.     }
  15.    
  16.     public Item getSeed(){
  17.        
  18.         return ItemRegistry.cornSeeds;
  19.     }
  20.    
  21.     public Item getCrop(){
  22.        
  23.         return ItemRegistry.cornFood;
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement