Package org.spout.vanilla.ai.action

Examples of org.spout.vanilla.ai.action.FollowMaterialHolderAction


    }
    NearbyMaterialHolderSensor materialHolderSensor = new NearbyMaterialHolderSensor(getAI(), VanillaMaterials.SEEDS);
    materialHolderSensor.setSensorRadius(16);
    getAI().registerSensor(materialHolderSensor);
    getAI().registerGoal(new FollowMaterialHolderGoal(getAI()));
    getAI().registerAction(new FollowMaterialHolderAction(getAI()));
  }
View Full Code Here


    }
    NearbyMaterialHolderSensor materialHolderSensor = new NearbyMaterialHolderSensor(getAI(), VanillaMaterials.WHEAT);
    materialHolderSensor.setSensorRadius(16);
    getAI().registerSensor(materialHolderSensor);
    getAI().registerGoal(new FollowMaterialHolderGoal(getAI()));
    getAI().registerAction(new FollowMaterialHolderAction(getAI()));

    // Add metadata for the wool state of the Sheep
    getOwner().add(MetadataComponent.class).addMeta(new Metadata<Byte>(Metadata.TYPE_BYTE, 16) {
      @Override
      public Byte getValue() {
View Full Code Here

    }
    NearbyMaterialHolderSensor materialHolderSensor = new NearbyMaterialHolderSensor(getAI(), VanillaMaterials.WHEAT);
    materialHolderSensor.setSensorRadius(16);
    getAI().registerSensor(materialHolderSensor);
    getAI().registerGoal(new FollowMaterialHolderGoal(getAI()));
    getAI().registerAction(new FollowMaterialHolderAction(getAI()));
  }
View Full Code Here

    }
    NearbyMaterialHolderSensor materialHolderSensor = new NearbyMaterialHolderSensor(getAI(), VanillaMaterials.CARROT);
    materialHolderSensor.setSensorRadius(16);
    getAI().registerSensor(materialHolderSensor);
    getAI().registerGoal(new FollowMaterialHolderGoal(getAI()));
    getAI().registerAction(new FollowMaterialHolderAction(getAI()));

    // Add metadata for saddled state
    getOwner().add(MetadataComponent.class).addBoolMeta(16, VanillaData.SADDLED);
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.ai.action.FollowMaterialHolderAction

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.