本文整理汇总了Java中net.minecraft.entity.monster.EntitySilverfish.spawnExplosionParticle方法的典型用法代码示例。如果您正苦于以下问题:Java EntitySilverfish.spawnExplosionParticle方法的具体用法?Java EntitySilverfish.spawnExplosionParticle怎么用?Java EntitySilverfish.spawnExplosionParticle使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.entity.monster.EntitySilverfish
的用法示例。
在下文中一共展示了EntitySilverfish.spawnExplosionParticle方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onBlockDestroyedByPlayer
import net.minecraft.entity.monster.EntitySilverfish; //导入方法依赖的package包/类
@Override
public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5)
{
if (!par1World.isRemote && par5 == 1)
{
EntitySilverfish entitysilverfish = new EntitySilverfish(par1World);
entitysilverfish.setLocationAndAngles((double)par2 + 0.5D, par3, (double)par4 + 0.5D, 0.0F, 0.0F);
par1World.spawnEntityInWorld(entitysilverfish);
entitysilverfish.spawnExplosionParticle();
for (int i = 3 + par1World.rand.nextInt(5) + par1World.rand.nextInt(5); i > 0;)
{
int j = EntityXPOrb.getXPSplit(i);
i -= j;
par1World.spawnEntityInWorld(new EntityXPOrb(par1World, par2, par3, par4, j));
}
}
super.onBlockDestroyedByPlayer(par1World, par2, par3, par4, par5);
}
示例2: dropBlockAsItemWithChance
import net.minecraft.entity.monster.EntitySilverfish; //导入方法依赖的package包/类
/**
* Spawns this Block's drops into the World as EntityItems.
*/
public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune)
{
if (!worldIn.isRemote && worldIn.getGameRules().getBoolean("doTileDrops"))
{
EntitySilverfish entitysilverfish = new EntitySilverfish(worldIn);
entitysilverfish.setLocationAndAngles((double)pos.getX() + 0.5D, (double)pos.getY(), (double)pos.getZ() + 0.5D, 0.0F, 0.0F);
worldIn.spawnEntityInWorld(entitysilverfish);
entitysilverfish.spawnExplosionParticle();
}
}
示例3: onBlockDestroyedByPlayer
import net.minecraft.entity.monster.EntitySilverfish; //导入方法依赖的package包/类
public void onBlockDestroyedByPlayer(World p_149664_1_, int p_149664_2_, int p_149664_3_, int p_149664_4_, int p_149664_5_)
{
if (!p_149664_1_.isClient)
{
EntitySilverfish var6 = new EntitySilverfish(p_149664_1_);
var6.setLocationAndAngles((double)p_149664_2_ + 0.5D, (double)p_149664_3_, (double)p_149664_4_ + 0.5D, 0.0F, 0.0F);
p_149664_1_.spawnEntityInWorld(var6);
var6.spawnExplosionParticle();
}
super.onBlockDestroyedByPlayer(p_149664_1_, p_149664_2_, p_149664_3_, p_149664_4_, p_149664_5_);
}
示例4: dropBlockAsItemWithChance
import net.minecraft.entity.monster.EntitySilverfish; //导入方法依赖的package包/类
/**
* Drops the block items with a specified chance of dropping the specified items
*/
public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_)
{
if (!p_149690_1_.isClient)
{
EntitySilverfish var8 = new EntitySilverfish(p_149690_1_);
var8.setLocationAndAngles((double)p_149690_2_ + 0.5D, (double)p_149690_3_, (double)p_149690_4_ + 0.5D, 0.0F, 0.0F);
p_149690_1_.spawnEntityInWorld(var8);
var8.spawnExplosionParticle();
}
}
示例5: onBlockDestroyedByPlayer
import net.minecraft.entity.monster.EntitySilverfish; //导入方法依赖的package包/类
public void onBlockDestroyedByPlayer(World p_149664_1_, int p_149664_2_, int p_149664_3_, int p_149664_4_, int p_149664_5_)
{
if (!p_149664_1_.isRemote)
{
EntitySilverfish entitysilverfish = new EntitySilverfish(p_149664_1_);
entitysilverfish.setLocationAndAngles((double)p_149664_2_ + 0.5D, (double)p_149664_3_, (double)p_149664_4_ + 0.5D, 0.0F, 0.0F);
p_149664_1_.spawnEntityInWorld(entitysilverfish);
entitysilverfish.spawnExplosionParticle();
}
super.onBlockDestroyedByPlayer(p_149664_1_, p_149664_2_, p_149664_3_, p_149664_4_, p_149664_5_);
}
示例6: dropBlockAsItemWithChance
import net.minecraft.entity.monster.EntitySilverfish; //导入方法依赖的package包/类
public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_)
{
if (!p_149690_1_.isRemote)
{
EntitySilverfish entitysilverfish = new EntitySilverfish(p_149690_1_);
entitysilverfish.setLocationAndAngles((double)p_149690_2_ + 0.5D, (double)p_149690_3_, (double)p_149690_4_ + 0.5D, 0.0F, 0.0F);
p_149690_1_.spawnEntityInWorld(entitysilverfish);
entitysilverfish.spawnExplosionParticle();
}
}
示例7: onBlockDestroyedByPlayer
import net.minecraft.entity.monster.EntitySilverfish; //导入方法依赖的package包/类
/**
* Called right before the block is destroyed by a player. Args: world, x, y, z, metaData
*/
public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5)
{
if (!par1World.isRemote)
{
EntitySilverfish entitysilverfish = new EntitySilverfish(par1World);
entitysilverfish.setLocationAndAngles((double)par2 + 0.5D, (double)par3, (double)par4 + 0.5D, 0.0F, 0.0F);
par1World.spawnEntityInWorld(entitysilverfish);
entitysilverfish.spawnExplosionParticle();
}
super.onBlockDestroyedByPlayer(par1World, par2, par3, par4, par5);
}
示例8: onBlockDestroyedByPlayer
import net.minecraft.entity.monster.EntitySilverfish; //导入方法依赖的package包/类
public void onBlockDestroyedByPlayer(World par1World, int par2, int par3, int par4, int par5)
{
if (!par1World.isRemote)
{
EntitySilverfish var6 = new EntitySilverfish(par1World);
var6.setLocationAndAngles((double)par2 + 0.5D, (double)par3, (double)par4 + 0.5D, 0.0F, 0.0F);
par1World.spawnEntityInWorld(var6);
var6.spawnExplosionParticle();
}
super.onBlockDestroyedByPlayer(par1World, par2, par3, par4, par5);
}