本文整理了Java中net.minecraft.entity.Entity.extinguish()
方法的一些代码示例,展示了Entity.extinguish()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.extinguish()
方法的具体详情如下:
包路径:net.minecraft.entity.Entity
类名称:Entity
方法名:extinguish
暂无
代码示例来源:origin: SleepyTrousers/EnderIO
entityIn.extinguish();
代码示例来源:origin: sinkillerj/ProjectE
@Override
public void updateInPedestal(@Nonnull World world, @Nonnull BlockPos pos)
{
if (!world.isRemote && ProjectEConfig.pedestalCooldown.zeroPedCooldown != -1)
{
TileEntity te = world.getTileEntity(pos);
if(!(te instanceof DMPedestalTile))
{
return;
}
DMPedestalTile tile = (DMPedestalTile) te;
if (tile.getActivityCooldown() == 0) {
AxisAlignedBB aabb = tile.getEffectBounds();
WorldHelper.freezeInBoundingBox(world, aabb, null, false);
List<Entity> list = world.getEntitiesWithinAABB(Entity.class, aabb);
for (Entity ent : list)
{
if (ent.isBurning())
{
ent.extinguish();
}
}
tile.setActivityCooldown(ProjectEConfig.pedestalCooldown.zeroPedCooldown);
}
else
{
tile.decrementActivityCooldown();
}
}
}
代码示例来源:origin: sinkillerj/ProjectE
@Override
protected void apply(RayTraceResult mop)
{
if (this.getEntityWorld().isRemote)
{
return;
}
if (mop.typeOfHit == Type.BLOCK)
{
BlockPos pos = mop.getBlockPos().offset(mop.sideHit);
if (world.isAirBlock(pos))
{
PlayerHelper.checkedPlaceBlock(((EntityPlayerMP) getThrower()), pos, Blocks.FLOWING_WATER.getDefaultState());
}
}
else if (mop.typeOfHit == Type.ENTITY)
{
Entity ent = mop.entityHit;
if (ent.isBurning())
{
ent.extinguish();
}
ent.addVelocity(this.motionX * 2, this.motionY * 2, this.motionZ * 2);
}
}
}
代码示例来源:origin: TeamWizardry/Wizardry
targetEntity.extinguish();
if (targetEntity instanceof EntityLivingBase)
((EntityLivingBase) targetEntity).addPotionEffect(new PotionEffect(ModPotions.SLIPPERY, (int) time, 0, true, false));
代码示例来源:origin: CoFH/ThermalFoundation
@Override
public void onEntityCollidedWithBlock(World world, BlockPos pos, IBlockState state, Entity entity) {
entity.extinguish();
代码示例来源:origin: Mine-and-blade-admin/Battlegear2
target.extinguish();
内容来源于网络,如有侵权,请联系作者删除!