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

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

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

World.removeEntityDangerously介绍

暂无

代码示例

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

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

代码示例来源:origin: Alex-the-666/Ice_and_Fire

  1. public void removeParts() {
  2. if (headPart != null) {
  3. world.removeEntityDangerously(headPart);
  4. world.removeEntityDangerously(neckPart);
  5. world.removeEntityDangerously(rightWingUpperPart);
  6. world.removeEntityDangerously(rightWingLowerPart);
  7. world.removeEntityDangerously(leftWingUpperPart);
  8. world.removeEntityDangerously(leftWingLowerPart);
  9. world.removeEntityDangerously(tail1Part);
  10. world.removeEntityDangerously(tail2Part);
  11. world.removeEntityDangerously(tail3Part);
  12. world.removeEntityDangerously(tail4Part);

代码示例来源:origin: Alex-the-666/Ice_and_Fire

  1. public void setDead() {
  2. if(eyeEntity != null){
  3. world.removeEntityDangerously(eyeEntity);
  4. }
  5. super.setDead();
  6. }

代码示例来源:origin: Alex-the-666/Ice_and_Fire

  1. private void clearSegments() {
  2. for (Entity entity : segments) {
  3. if (entity != null) {
  4. entity.onKillCommand();
  5. world.removeEntityDangerously(entity);
  6. }
  7. }
  8. }

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

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

代码示例来源:origin: iLexiconn/LLibrary

  1. @Override
  2. public void onUpdate() {
  3. this.setPositionAndUpdate(this.parent.posX + this.radius * Math.cos(this.parent.renderYawOffset * (Math.PI / 180.0F) + this.angleYaw), this.parent.posY + this.offsetY, this.parent.posZ + this.radius * Math.sin(this.parent.renderYawOffset * (Math.PI / 180.0F) + this.angleYaw));
  4. if (!this.world.isRemote) {
  5. this.collideWithNearbyEntities();
  6. }
  7. if (this.parent.isDead) {
  8. this.world.removeEntityDangerously(this);
  9. }
  10. super.onUpdate();
  11. }

代码示例来源:origin: vadis365/TheErebus

  1. WorldServer toWorld = server.getWorld(dimensionId);
  2. entity.setDropItemsWhenDead(false);
  3. world.removeEntityDangerously(entity);
  4. entity.dimension = dimensionId;
  5. entity.isDead = false;

相关文章

World类方法