Package powercrystals.minefactoryreloaded.block

Source Code of powercrystals.minefactoryreloaded.block.BlockPinkSlimeFluid

package powercrystals.minefactoryreloaded.block;

import powercrystals.minefactoryreloaded.entity.EntityPinkSlime;

public class BlockPinkSlimeFluid extends BlockFactoryFluid
{
  public BlockPinkSlimeFluid(int id, String liquidName)
  {
    super(id, liquidName);
  }
 
  @Override
  public void updateTick(net.minecraft.world.World world, int x, int y, int z, java.util.Random rand)
  {
    if(world.getBlockMetadata(x, y, z) == (quantaPerBlock - 1))
    {
      world.setBlockToAir(x, y, z);
      EntityPinkSlime s = new EntityPinkSlime(world);
      s.initCreature();
      s.setSlimeSize(1);
      s.setPosition(x, y + 0.5, z);
      world.spawnEntityInWorld(s);
    }
    else
    {
      super.updateTick(world, x, y, z, rand);
    }
  }
}
TOP

Related Classes of powercrystals.minefactoryreloaded.block.BlockPinkSlimeFluid

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.