/** * Called when an entity is spawned in the world. This includes players. */ public boolean spawnEntityInWorld(Entity entityIn) { boolean flag = super.spawnEntityInWorld(entityIn); this.entityList.add(entityIn); if (!flag) { this.entitySpawnQueue.add(entityIn); } else if (entityIn instanceof EntityMinecart) { this.mc.getSoundHandler().playSound(new MovingSoundMinecart((EntityMinecart)entityIn)); } return flag; }
/** * Called when an entity is spawned in the world. This includes players. */ public boolean spawnEntityInWorld(Entity entityIn) { boolean flag = super.spawnEntityInWorld(entityIn); this.entityList.add(entityIn); if (flag) { if (entityIn instanceof EntityMinecart) { this.mc.getSoundHandler().playSound(new MovingSoundMinecart((EntityMinecart)entityIn)); } } else { this.entitySpawnQueue.add(entityIn); } return flag; }
/** * Called to place all entities as part of a world */ public boolean spawnEntityInWorld(Entity par1Entity) { boolean var2 = super.spawnEntityInWorld(par1Entity); this.entityList.add(par1Entity); if (!var2) { this.entitySpawnQueue.add(par1Entity); } else if (par1Entity instanceof EntityMinecart) { this.mc.getSoundHandler().playSound(new MovingSoundMinecart((EntityMinecart)par1Entity)); } return var2; }
public boolean spawnEntityInWorld(Entity p_72838_1_) { boolean flag = super.spawnEntityInWorld(p_72838_1_); this.entityList.add(p_72838_1_); if (!flag) { this.entitySpawnQueue.add(p_72838_1_); } else if (p_72838_1_ instanceof EntityMinecart) { this.mc.getSoundHandler().playSound(new MovingSoundMinecart((EntityMinecart)p_72838_1_)); } return flag; }