Esempio n. 1
0
 public void updateRider(Entity var1) {
   if (var1 != null) {
     if (var1 instanceof EntityLiving) {
       this.say(
           "Updating living rider #"
               + var1.entityId
               + " to "
               + (this.posY + this.getMountedYOffset() + var1.getYOffset()));
       var1.setPosition(
           this.posX,
           this.centerElevator.posY + this.getMountedYOffset() + var1.getYOffset(),
           this.posZ);
     } else if (!(var1 instanceof EntityElevator)) {
       this.say(
           "Updating rider #"
               + var1.entityId
               + " to "
               + (this.posY + this.getMountedYOffset() + var1.getYOffset()));
       var1.setPosition(
           var1.posX,
           this.centerElevator.posY + this.getMountedYOffset() + var1.getYOffset(),
           var1.posZ);
     }
   }
 }
Esempio n. 2
0
 public void updateRiderPosition() {
   riddenByEntity.setPosition(
       posX, posY + getMountedYOffset() + riddenByEntity.getYOffset(), posZ);
 }