Structure.java 951 Bytes
Newer Older
Florian Grabowski's avatar
Florian Grabowski committed
1
2
3
4
5
6
7
8
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;
9
import java.awt.*;
Florian Grabowski's avatar
Florian Grabowski committed
10
11
12
13
14

@Entity
public class Structure{

    @Column(name ="width")
15
    protected Point width = new Point(0,0);
Florian Grabowski's avatar
Florian Grabowski committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
    @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);
    }

37
    public Point getWidth() {
Florian Grabowski's avatar
Florian Grabowski committed
38
39
40
41
42
43
44
45
46
47
48
        return width;
    }

    public void setDepth(int depth) {
        this.depth = depth;
    }

    public int getDepth() {
        return depth;
    }
}