public boolean startRiding(Entity entityIn, boolean force) { if (!super.startRiding(entityIn, force)) { return false; } else { if (entityIn instanceof EntityMinecart) { this.mc.getSoundHandler().playSound(new MovingSoundMinecartRiding(this, (EntityMinecart)entityIn)); } if (entityIn instanceof EntityBoat) { this.prevRotationYaw = entityIn.rotationYaw; this.rotationYaw = entityIn.rotationYaw; this.setRotationYawHead(entityIn.rotationYaw); } return true; } }
/** * Called when a player mounts an entity. e.g. mounts a pig, mounts a boat. */ public void mountEntity(Entity entityIn) { super.mountEntity(entityIn); if (entityIn instanceof EntityMinecart) { this.mc.getSoundHandler().playSound(new MovingSoundMinecartRiding(this, (EntityMinecart)entityIn)); } }
/** * Called when a player mounts an entity. e.g. mounts a pig, mounts a boat. */ public void mountEntity(Entity entityIn) { super.mountEntity(entityIn); if (entityIn instanceof EntityMinecart) { this.mc.getSoundHandler().playSound(new MovingSoundMinecartRiding(this, (EntityMinecart) entityIn)); } }
/** * Called when a player mounts an entity. e.g. mounts a pig, mounts a boat. */ public void mountEntity(Entity par1Entity) { super.mountEntity(par1Entity); if (par1Entity instanceof EntityMinecart) { this.mc.getSoundHandler().playSound(new MovingSoundMinecartRiding(this, (EntityMinecart)par1Entity)); } }
public void mountEntity(Entity p_70078_1_) { super.mountEntity(p_70078_1_); if (p_70078_1_ instanceof EntityMinecart) { this.mc.getSoundHandler().playSound(new MovingSoundMinecartRiding(this, (EntityMinecart)p_70078_1_)); } }