Esempio n. 1
0
  public boolean shouldExecute() {
    if (theDigimon.riddenByEntity == null
        || !(theDigimon.riddenByEntity instanceof EntityPlayer)
        || !theDigimon.canBeRided((EntityPlayer) theDigimon.riddenByEntity)) {
      return false;
    }

    rider = (EntityPlayer) theDigimon.riddenByEntity;
    return true;
  }
Esempio n. 2
0
 public boolean continueExecuting() {
   return theDigimon.isEntityAlive()
       && theDigimon.riddenByEntity != null
       && theDigimon.canBeRided(rider);
 }