mirror of https://github.com/Minestom/Minestom.git
16 lines
358 B
Java
16 lines
358 B
Java
package fr.themode.minestom.entity;
|
|
|
|
public abstract class LivingEntity extends Entity {
|
|
|
|
protected boolean onGround;
|
|
|
|
public LivingEntity(int entityType) {
|
|
super(entityType);
|
|
}
|
|
|
|
public boolean chunkTest(double x, double z) {
|
|
return getInstance().getChunk((int) Math.floor(x / 16), (int) Math.floor(z / 16)) == null;
|
|
}
|
|
|
|
}
|