ModMCdl

Thaummix

Oct 22nd, 2017
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.87 KB | None | 0 0
  1. package com.modmcdl.magitech.blocks;
  2.  
  3. import com.modmcdl.magitech.Reference;
  4. import com.modmcdl.magitech.init.ModBlocks;
  5. import com.modmcdl.magitech.init.ModItems;
  6.  
  7. import net.minecraft.block.BlockCrops;
  8. import net.minecraft.block.state.IBlockState;
  9. import net.minecraft.init.Blocks;
  10. import net.minecraft.item.Item;
  11.  
  12. public class BlockThaummix extends BlockCrops {
  13.    
  14.     public BlockThaummix() {
  15.         setUnlocalizedName(Reference.MagitechBlocks.THAUMMIX.getUnlocalizedName());
  16.         setRegistryName(Reference.MagitechBlocks.THAUMMIX.getRegistryName());
  17.     }
  18.  
  19.     @Override //Allows to be planted in "planter" block
  20.     protected boolean canSustainBush(IBlockState state) {
  21.         return state.getBlock() == ModBlocks.planter;
  22.     }
  23.    
  24.     @Override
  25.     protected Item getSeed() {
  26.         return ModItems.thaumseed;
  27.     }
  28.    
  29.     @Override
  30.     protected Item getCrop() {
  31.         return ModItems.thaumseed;
  32.     }
  33.    
  34. }
Advertisement
Add Comment
Please, Sign In to add comment