Examples of mountEntity()


Examples of net.minecraft.entity.Entity.mountEntity()

                      e = WorldUtil.forceRespawnClient(this.dimension, e.worldObj.difficultySetting.getDifficultyId(), e.worldObj.getWorldInfo().getTerrainType().getWorldTypeName(), ((EntityPlayerMP)e).theItemInWorldManager.getGameType().getID());
                      e.mountEntity(this);
                    }
                  }
                  else
                    e.mountEntity(this);
                }
            }
          }
        }
    }
View Full Code Here

Examples of net.minecraft.entity.Entity.mountEntity()

                if (this.ticks >= 40)
                {
                    if (!this.worldObj.isRemote)
                    {
                        Entity e = this.riddenByEntity;
                        e.mountEntity(null);
                        e.mountEntity(this);
                        if (ConfigManagerCore.enableDebug) System.out.println("Remounting player in rocket.");
                    }

                    this.setWaitForPlayer(false);
View Full Code Here

Examples of net.minecraft.entity.Entity.mountEntity()

                {
                    if (!this.worldObj.isRemote)
                    {
                        Entity e = this.riddenByEntity;
                        e.mountEntity(null);
                        e.mountEntity(this);
                        if (ConfigManagerCore.enableDebug) System.out.println("Remounting player in rocket.");
                    }

                    this.setWaitForPlayer(false);
                    this.motionY = -0.5D;
View Full Code Here

Examples of net.minecraft.entity.EntityLiving.mountEntity()

      for(Object obj : nearbyMobs)
      {
        EntityLiving entity = (EntityLiving)obj;
        if(entity.getLeashed() && entity.getLeashedToEntity() == entityplayer)
        {
          entity.mountEntity(this);
          looking.setAngles(-entity.rotationYaw, entity.rotationPitch, 0F);
          entity.clearLeashed(true, !entityplayer.capabilities.isCreativeMode);
        }
      }
      return true;
View Full Code Here

Examples of net.minecraft.entity.EntityLivingBase.mountEntity()

                        return;
                }

                if (entity.ridingEntity == null) {
                    EffectManager.instance.teleportEffect(entity, cart.posX, cart.posY, cart.posZ);
                    entity.mountEntity(cart);
                }
            }
        }
    }
View Full Code Here

Examples of net.minecraft.entity.monster.EntityBlaze.mountEntity()

    skeleton2.mountEntity(skeleton1);
    mobs.add(new RandomMob(skeleton1, 2));
   
    EntityBlaze blazeJockey = (EntityBlaze)MFRUtil.prepareMob(EntityBlaze.class, world);
    EntityGhast blazeMount = (EntityGhast)MFRUtil.prepareMob(EntityGhast.class, world);
    blazeJockey.mountEntity(blazeMount);
    mobs.add(new RandomMob(blazeMount, 2));
   
    EntityCreeper creeperJockey = (EntityCreeper)MFRUtil.prepareMob(EntityCreeper.class, world);
    EntityCaveSpider creeperMount = (EntityCaveSpider)MFRUtil.prepareMob(EntityCaveSpider.class, world);
    creeperJockey.mountEntity(creeperMount);
View Full Code Here

Examples of net.minecraft.entity.monster.EntityCreeper.mountEntity()

    blazeJockey.mountEntity(blazeMount);
    mobs.add(new RandomMob(blazeMount, 2));
   
    EntityCreeper creeperJockey = (EntityCreeper)MFRUtil.prepareMob(EntityCreeper.class, world);
    EntityCaveSpider creeperMount = (EntityCaveSpider)MFRUtil.prepareMob(EntityCaveSpider.class, world);
    creeperJockey.mountEntity(creeperMount);
    mobs.add(new RandomMob(creeperMount, 2));
   
    return mobs;
  }
}
View Full Code Here

Examples of net.minecraft.entity.monster.EntitySkeleton.mountEntity()

   
    EntitySkeleton skeleton1 = (EntitySkeleton)MFRUtil.prepareMob(EntitySkeleton.class, world);
    EntitySkeleton skeleton2 = (EntitySkeleton)MFRUtil.prepareMob(EntitySkeleton.class, world);
    EntitySkeleton skeleton3 = (EntitySkeleton)MFRUtil.prepareMob(EntitySkeleton.class, world);
    EntitySkeleton skeleton4 = (EntitySkeleton)MFRUtil.prepareMob(EntitySkeleton.class, world);
    skeleton4.mountEntity(skeleton3);
    skeleton3.mountEntity(skeleton2);
    skeleton2.mountEntity(skeleton1);
    mobs.add(new RandomMob(skeleton1, 2));
   
    EntityBlaze blazeJockey = (EntityBlaze)MFRUtil.prepareMob(EntityBlaze.class, world);
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.mountEntity()

            Vector3d cartPos = EntityUtil.getEntityPosition(cart);
            if(playerPos.distanceSquared(cartPos) <= 9) {
              player.posX = cart.posX;
              player.posY = cart.posY;
              player.posZ = cart.posZ;
              player.mountEntity(cart);
              return true;
            }
          }
        }
      }
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.mountEntity()

            {
                final EntityPlayer player = this.worldObj.getClosestPlayerToEntity(this, 5);

                if (player != null && player.ridingEntity == null)
                {
                    player.mountEntity(this);
                }
            }
        }

        if (!this.worldObj.isRemote)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.