本文整理了Java中net.minecraft.world.World.removeEntityDangerously()
方法的一些代码示例,展示了World.removeEntityDangerously()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。World.removeEntityDangerously()
方法的具体详情如下:
包路径:net.minecraft.world.World
类名称:World
方法名:removeEntityDangerously
暂无
代码示例来源:origin: SleepyTrousers/EnderIO
@Override
public void removeEntityDangerously(@Nonnull Entity entityIn) {
wrapped.removeEntityDangerously(entityIn);
}
代码示例来源:origin: Alex-the-666/Ice_and_Fire
public void removeParts() {
if (headPart != null) {
world.removeEntityDangerously(headPart);
world.removeEntityDangerously(neckPart);
world.removeEntityDangerously(rightWingUpperPart);
world.removeEntityDangerously(rightWingLowerPart);
world.removeEntityDangerously(leftWingUpperPart);
world.removeEntityDangerously(leftWingLowerPart);
world.removeEntityDangerously(tail1Part);
world.removeEntityDangerously(tail2Part);
world.removeEntityDangerously(tail3Part);
world.removeEntityDangerously(tail4Part);
代码示例来源:origin: Alex-the-666/Ice_and_Fire
public void setDead() {
if(eyeEntity != null){
world.removeEntityDangerously(eyeEntity);
}
super.setDead();
}
代码示例来源:origin: Alex-the-666/Ice_and_Fire
private void clearSegments() {
for (Entity entity : segments) {
if (entity != null) {
entity.onKillCommand();
world.removeEntityDangerously(entity);
}
}
}
代码示例来源:origin: amadornes/MCMultiPart
@Override
public void removeEntityDangerously(Entity entityIn) {
getActualWorld().removeEntityDangerously(entityIn);
}
代码示例来源:origin: iLexiconn/LLibrary
@Override
public void onUpdate() {
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));
if (!this.world.isRemote) {
this.collideWithNearbyEntities();
}
if (this.parent.isDead) {
this.world.removeEntityDangerously(this);
}
super.onUpdate();
}
代码示例来源:origin: vadis365/TheErebus
WorldServer toWorld = server.getWorld(dimensionId);
entity.setDropItemsWhenDead(false);
world.removeEntityDangerously(entity);
entity.dimension = dimensionId;
entity.isDead = false;
内容来源于网络,如有侵权,请联系作者删除!