package de._82grfl1bif.KPI_Visualizer.structures; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.util.Vector; import javax.persistence.Column; import javax.persistence.Entity; import java.awt.*; @Entity public class Structure{ @Column(name ="width") protected Point width = new Point(0,0); @Column(name ="material") protected Material material; protected Location location; protected int depth; public Material getMaterial() { return material; } public Location getLocation() { return location; } public void setLocation(Location location) { this.location = location; } public void addVector(Vector vector){ this.location.add(vector); } public Point getWidth() { return width; } public void setDepth(int depth) { this.depth = depth; } public int getDepth() { return depth; } }