Skip to content

Instantly share code, notes, and snippets.

@kulalolk
Created May 10, 2014 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kulalolk/9076ce29a9918734130c to your computer and use it in GitHub Desktop.
Save kulalolk/9076ce29a9918734130c to your computer and use it in GitHub Desktop.
package DiamondEnder.blocks;
import java.util.Random;
import net.minecraft.block.BlockCrops;
import net.minecraft.block.IGrowable;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.Item;
import net.minecraft.util.IIcon;
import DiamondEnder.DiamondEnder;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class DiamondEnderCrop extends BlockCrops implements IGrowable
{
private IIcon[] field_149867_a;
public DiamondEnderCrop()
{
// Basic block setup
this.setBlockName("DiamondEnderCrop");
this.setBlockTextureName("diamondender:DiamondCrop_0");
}
// this is seed item for the crop
public Item getItemSeed(){
return DiamondEnder.DiamondEnderSeeds;
}
// this is item harvested from crop
public Item getCropItem(){
return DiamondEnder.DiamondEnderEssence;
}
/**
* Returns the quantity of items to drop on block destruction.
*/
public int quantityDropped(Random p_149745_1_)
{
return 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment