net.minecraft.world.World.updateEntity()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(147)

本文整理了Java中net.minecraft.world.World.updateEntity()方法的一些代码示例,展示了World.updateEntity()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。World.updateEntity()方法的具体详情如下:
包路径:net.minecraft.world.World
类名称:World
方法名:updateEntity

World.updateEntity介绍

暂无

代码示例

代码示例来源:origin: SleepyTrousers/EnderIO

  1. @Override
  2. public void updateEntity(@Nonnull Entity ent) {
  3. wrapped.updateEntity(ent);
  4. }

代码示例来源:origin: amadornes/MCMultiPart

  1. @Override
  2. public void updateEntity(Entity ent) {
  3. getActualWorld().updateEntity(ent);
  4. }

代码示例来源:origin: SleepyTrousers/EnderIO

  1. @Override
  2. public void explode(@Nonnull World world, @Nonnull BlockPos pos, @Nonnull IBlockState state, @Nonnull EntityLivingBase igniter) {
  3. if (!world.isRemote) {
  4. if (state.getValue(EXPLODE).booleanValue()) {
  5. EntityPrimedCharge entity = new EntityPrimedCharge(this, world, pos.getX() + 0.5F, pos.getY() + 0.5F, pos.getZ() + 0.5F, igniter);
  6. world.spawnEntity(entity);
  7. world.playSound((EntityPlayer) null, entity.posX, entity.posY, entity.posZ, SoundEvents.ENTITY_TNT_PRIMED, SoundCategory.BLOCKS, 1, 1);
  8. world.updateEntity(entity);
  9. }
  10. }
  11. }

相关文章

World类方法