本文整理了Java中net.minecraft.world.World.updateEntity()
方法的一些代码示例,展示了World.updateEntity()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。World.updateEntity()
方法的具体详情如下:
包路径:net.minecraft.world.World
类名称:World
方法名:updateEntity
暂无
代码示例来源:origin: SleepyTrousers/EnderIO
@Override
public void updateEntity(@Nonnull Entity ent) {
wrapped.updateEntity(ent);
}
代码示例来源:origin: amadornes/MCMultiPart
@Override
public void updateEntity(Entity ent) {
getActualWorld().updateEntity(ent);
}
代码示例来源:origin: SleepyTrousers/EnderIO
@Override
public void explode(@Nonnull World world, @Nonnull BlockPos pos, @Nonnull IBlockState state, @Nonnull EntityLivingBase igniter) {
if (!world.isRemote) {
if (state.getValue(EXPLODE).booleanValue()) {
EntityPrimedCharge entity = new EntityPrimedCharge(this, world, pos.getX() + 0.5F, pos.getY() + 0.5F, pos.getZ() + 0.5F, igniter);
world.spawnEntity(entity);
world.playSound((EntityPlayer) null, entity.posX, entity.posY, entity.posZ, SoundEvents.ENTITY_TNT_PRIMED, SoundCategory.BLOCKS, 1, 1);
world.updateEntity(entity);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!