package me.alexqq11;

/**
 * Created by Alexqq11 on 20.09.2016.
 */
public class Essence{
    public int x;
    public int y;
    public int width;
    public int height;
    private int id;
    public boolean positionEquals(Essence essence){
        return  this.x == essence.x && this.y == essence.y;
    }
    public int getId() {
        return this.id;
    }
    // THINK  ABOUT IT  public EssenceConfig  configuration;
}

package me.alexqq11;

/**
 * Created by Alexqq11 on 20.09.2016.
 */
public class Essence{
    public int x;
    public int y;
    // лучше переделать на Point position
    public int width;
    public int height;
    private int id;
    public boolean positionEquals(Essence essence){
        return  this.x == essence.x && this.y == essence.y;
    }
    public int getId() {
        return this.id;
    }
    // THINK  ABOUT IT  public EssenceConfig  configuration;
}

Update Essence.java