/
DelegateIslandPreview.java
49 lines (37 loc) · 1 KB
/
DelegateIslandPreview.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.bgsoftware.superiorskyblock.api.island;
import com.bgsoftware.superiorskyblock.api.wrappers.SuperiorPlayer;
import org.bukkit.Location;
public class DelegateIslandPreview implements IslandPreview {
protected final IslandPreview handle;
protected DelegateIslandPreview(IslandPreview handle) {
this.handle = handle;
}
@Override
public SuperiorPlayer getPlayer() {
return this.handle.getPlayer();
}
@Override
public Location getLocation() {
return this.handle.getLocation();
}
@Override
public String getSchematic() {
return this.handle.getSchematic();
}
@Override
public String getIslandName() {
return this.handle.getIslandName();
}
@Override
public void handleConfirm() {
this.handle.handleConfirm();
}
@Override
public void handleCancel() {
this.handle.handleCancel();
}
@Override
public void handleEscape() {
this.handle.handleEscape();
}
}