Structure.java 886 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

public class Structure{

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

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

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

    public int getDepth() {
        return depth;
    }
}