Search in sources :

Example 1 with CustomPathFinderGoalPanic

use of be.isach.ultracosmetics.v1_13_R2.pathfinders.CustomPathFinderGoalPanic in project UltraCosmetics by iSach.

the class EntityUtil method makePanic.

@Override
public void makePanic(org.bukkit.entity.Entity entity) {
    EntityInsentient insentient = (EntityInsentient) ((CraftEntity) entity).getHandle();
    insentient.goalSelector.a(3, new CustomPathFinderGoalPanic((EntityCreature) insentient, 0.4d));
}
Also used : CustomPathFinderGoalPanic(be.isach.ultracosmetics.v1_14_R1.pathfinders.CustomPathFinderGoalPanic)

Example 2 with CustomPathFinderGoalPanic

use of be.isach.ultracosmetics.v1_13_R2.pathfinders.CustomPathFinderGoalPanic in project UltraCosmetics by iSach.

the class EntityUtil method makePanic.

@Override
public void makePanic(org.bukkit.entity.Entity entity) {
    EntityInsentient insentient = (EntityInsentient) ((CraftEntity) entity).getHandle();
    insentient.goalSelector.a(3, new CustomPathFinderGoalPanic((EntityCreature) insentient, 0.4d));
}
Also used : CustomPathFinderGoalPanic(be.isach.ultracosmetics.v1_15_R1.pathfinders.CustomPathFinderGoalPanic)

Example 3 with CustomPathFinderGoalPanic

use of be.isach.ultracosmetics.v1_13_R2.pathfinders.CustomPathFinderGoalPanic in project UltraCosmetics by iSach.

the class EntityUtil method makePanic.

@Override
public void makePanic(org.bukkit.entity.Entity entity) {
    PathfinderMob insentient = (PathfinderMob) ((CraftEntity) entity).getHandle();
    insentient.goalSelector.addGoal(3, new CustomPathFinderGoalPanic(insentient, 0.4d));
}
Also used : PathfinderMob(net.minecraft.world.entity.PathfinderMob) CustomPathFinderGoalPanic(be.isach.ultracosmetics.v1_18_R2.pathfinders.CustomPathFinderGoalPanic)

Example 4 with CustomPathFinderGoalPanic

use of be.isach.ultracosmetics.v1_13_R2.pathfinders.CustomPathFinderGoalPanic in project UltraCosmetics by iSach.

the class EntityUtil method makePanic.

@Override
public void makePanic(Entity entity) {
    EntityInsentient insentient = (EntityInsentient) ((CraftEntity) entity).getHandle();
    insentient.goalSelector.a(3, new CustomPathFinderGoalPanic((EntityCreature) insentient, 0.4d));
}
Also used : EntityInsentient(net.minecraft.server.v1_8_R3.EntityInsentient) CustomPathFinderGoalPanic(be.isach.ultracosmetics.v1_8_R3.pathfinders.CustomPathFinderGoalPanic) EntityCreature(net.minecraft.server.v1_8_R3.EntityCreature)

Example 5 with CustomPathFinderGoalPanic

use of be.isach.ultracosmetics.v1_13_R2.pathfinders.CustomPathFinderGoalPanic in project UltraCosmetics by iSach.

the class EntityUtil method makePanic.

@Override
public void makePanic(org.bukkit.entity.Entity entity) {
    PathfinderMob insentient = (PathfinderMob) ((CraftEntity) entity).getHandle();
    insentient.goalSelector.addGoal(3, new CustomPathFinderGoalPanic(insentient, 0.4d));
}
Also used : PathfinderMob(net.minecraft.world.entity.PathfinderMob) CustomPathFinderGoalPanic(be.isach.ultracosmetics.v1_17_R1.pathfinders.CustomPathFinderGoalPanic)

Aggregations

PathfinderMob (net.minecraft.world.entity.PathfinderMob)2 CustomPathFinderGoalPanic (be.isach.ultracosmetics.v1_12_R1.pathfinders.CustomPathFinderGoalPanic)1 CustomPathFinderGoalPanic (be.isach.ultracosmetics.v1_13_R2.pathfinders.CustomPathFinderGoalPanic)1 CustomPathFinderGoalPanic (be.isach.ultracosmetics.v1_14_R1.pathfinders.CustomPathFinderGoalPanic)1 CustomPathFinderGoalPanic (be.isach.ultracosmetics.v1_15_R1.pathfinders.CustomPathFinderGoalPanic)1 CustomPathFinderGoalPanic (be.isach.ultracosmetics.v1_16_R3.pathfinders.CustomPathFinderGoalPanic)1 CustomPathFinderGoalPanic (be.isach.ultracosmetics.v1_17_R1.pathfinders.CustomPathFinderGoalPanic)1 CustomPathFinderGoalPanic (be.isach.ultracosmetics.v1_18_R2.pathfinders.CustomPathFinderGoalPanic)1 CustomPathFinderGoalPanic (be.isach.ultracosmetics.v1_8_R3.pathfinders.CustomPathFinderGoalPanic)1 EntityCreature (net.minecraft.server.v1_8_R3.EntityCreature)1 EntityInsentient (net.minecraft.server.v1_8_R3.EntityInsentient)1