
net.minecraft.server.PathfinderGoalFloat Maven / Gradle / Ivy
package net.minecraft.server;
public class PathfinderGoalFloat extends PathfinderGoal {
private final EntityInsentient a;
public PathfinderGoalFloat(EntityInsentient entityinsentient) {
this.a = entityinsentient;
this.setMutexBits(4);
((Navigation) entityinsentient.getNavigation()).d(true);
}
public boolean a() {
return this.a.isInWater() || this.a.isInLava();
}
public void e() {
if (this.a.getRandom().nextFloat() < 0.8F) {
this.a.getControllerJump().a();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy