Search in sources :

Example 1 with FlyRandomlyGoal

use of frozenblock.wild.mod.liukrastapi.FlyRandomlyGoal in project wildmod by Osmiooo.

the class AllayEntity method initGoals.

protected void initGoals() {
    this.goalSelector.add(1, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
    this.goalSelector.add(3, new FlyRandomlyGoal(this));
    this.setCanPickUpLoot(true);
    List<ItemEntity> list = AllayEntity.this.world.getEntitiesByClass(ItemEntity.class, AllayEntity.this.getBoundingBox().expand(8.0D, 8.0D, 8.0D), AllayEntity.CAN_TAKE);
}
Also used : FlyRandomlyGoal(frozenblock.wild.mod.liukrastapi.FlyRandomlyGoal) ItemEntity(net.minecraft.entity.ItemEntity) LookAtEntityGoal(net.minecraft.entity.ai.goal.LookAtEntityGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Aggregations

FlyRandomlyGoal (frozenblock.wild.mod.liukrastapi.FlyRandomlyGoal)1 ItemEntity (net.minecraft.entity.ItemEntity)1 LookAtEntityGoal (net.minecraft.entity.ai.goal.LookAtEntityGoal)1 PlayerEntity (net.minecraft.entity.player.PlayerEntity)1