Package forestry.lepidopterology.entities

Examples of forestry.lepidopterology.entities.EntityButterfly


      return false;

    if(entityItem.worldObj.countEntities(EntityButterfly.class) > PluginLepidopterology.entityConstraint)
      return false;

    if(Utils.spawnEntity(entityItem.worldObj, new EntityButterfly(entityItem.worldObj, butterfly), entityItem.posX, entityItem.posY, entityItem.posZ) != null) {
      if(entityItem.getEntityItem().stackSize > 1)
        entityItem.getEntityItem().stackSize--;
      else
        entityItem.setDead();
      return true;
View Full Code Here


    IButterfly butterfly = PluginLepidopterology.butterflyInterface.getMember(item);
    if(butterfly == null)
      butterfly = PluginLepidopterology.butterflyInterface.templateAsIndividual(PluginLepidopterology.butterflyInterface.getDefaultTemplate());
   
    if(entity == null) {
      entity = new EntityButterfly(Proxies.common.getClientInstance().theWorld);
    }
    entity.setSpecies(butterfly.getGenome().getPrimary());
    if(scaled)
      entity.setScale(butterfly.getSize());
    else
View Full Code Here

  }

  @Override
  public EntityLiving spawnButterflyInWorld(World world, IButterfly butterfly, double x, double y, double z) {
    return (EntityButterfly)Utils.spawnEntity(world, new EntityButterfly(world, butterfly), x, y, z);
  }
View Full Code Here

TOP

Related Classes of forestry.lepidopterology.entities.EntityButterfly

Copyright © 2018 www.massapicom. 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.