Advertisement
ArthurGoelzer

Bloco

Oct 25th, 2014
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.70 KB | None | 0 0
  1. package goelzer.amuletos.blocks;
  2.  
  3. import java.util.Random;
  4.  
  5. import akka.actor.FSM.Event;
  6. import cpw.mods.fml.common.eventhandler.SubscribeEvent;
  7. import cpw.mods.fml.common.network.internal.FMLNetworkHandler;
  8. import cpw.mods.fml.relauncher.Side;
  9. import cpw.mods.fml.relauncher.SideOnly;
  10. import goelzer.amuletos.creativetabs.TabAmuletos;
  11. import goelzer.amuletos.main.Amuletos;
  12. import goelzer.amuletos.tileentity.TileIncensario;
  13. import net.minecraft.block.Block;
  14. import net.minecraft.block.BlockContainer;
  15. import net.minecraft.block.material.Material;
  16. import net.minecraft.entity.EntityLivingBase;
  17. import net.minecraft.entity.player.EntityPlayer;
  18. import net.minecraft.item.ItemStack;
  19. import net.minecraft.tileentity.TileEntity;
  20. import net.minecraft.util.MathHelper;
  21. import net.minecraft.world.World;
  22. import net.minecraftforge.event.entity.player.PlayerInteractEvent;
  23.  
  24. public class Incensario extends BlockContainer {
  25.     private final boolean isActive;
  26.    
  27.     public Incensario(Material material, boolean isActive )
  28.     {
  29.         super(material);
  30.         this.setCreativeTab(TabAmuletos.tabAmuletos);
  31.         this.setBlockName("Incensario");
  32.        
  33.         this.isActive = isActive;
  34.     }
  35.    
  36.     private static boolean keepInventory;
  37.    
  38.     @Override
  39.     public TileEntity createNewTileEntity(World world, int meta)
  40.     {
  41.         return new TileIncensario();
  42.     }
  43.    
  44.     @Override
  45.     public int getRenderType()
  46.     {
  47.         return -1;
  48.     }
  49.    
  50.     @Override
  51.     public boolean isOpaqueCube()
  52.     {
  53.         return false;
  54.     }
  55.     @Override
  56.     public boolean renderAsNormalBlock()
  57.     {
  58.         return false;
  59.     }
  60.  
  61.     @SideOnly(Side.CLIENT)
  62.     public void randomDisplayTick(World world, int x, int y, int z, Random random)
  63.     {
  64.         world.spawnParticle("flame",x+0.5f, y+0.8f, z+0.5f, 0f, 0.1f, 0f);
  65.     }
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement