Advertisement
Guest User

BlockBanannaLeaves.java

a guest
Oct 28th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. package tasteslikebleach.tcm.blocks;
  2.  
  3. import java.util.Random;
  4.  
  5. import net.minecraft.block.Block;
  6. import net.minecraft.block.material.Material;
  7. import net.minecraft.block.state.IBlockState;
  8. import net.minecraft.item.Item;
  9. import net.minecraft.util.ResourceLocation;
  10. import tasteslikebleach.tcm.Reference;
  11. import tasteslikebleach.tcm.init.ModBlocks;
  12.  
  13. public class BlockBanannaLeaves extends Block {
  14.  
  15. public BlockBanannaLeaves(String unlocalizedName) {
  16. super(Material.PLANTS);
  17. this.setUnlocalizedName(unlocalizedName);
  18. this.setRegistryName(new ResourceLocation(Reference.MODID, unlocalizedName));
  19. }
  20. @Override
  21. public Item getItemDropped(IBlockState state, Random rand, int fortune){
  22. return Item.getItemFromBlock(ModBlocks.banannasapling);
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement