-
Notifications
You must be signed in to change notification settings - Fork 13
/
Properties.java
93 lines (74 loc) · 1.35 KB
/
Properties.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
interface Acquirable {
// marker
}
interface Burnable {
public void burn();
}
// I would call it throwable, but we all know I can't do that...
interface Chuckable {
public void chuck();
}
interface Destroyable {
public void destroy();
public void setDestroyMessage(String s);
public void setDisappears(boolean b);
public boolean disappears();
}
interface Droppable {
public void drop();
}
interface Edible {
public void eat();
}
interface Explodable {
public void explode();
}
interface Holdable {
//marker
}
// couldn't think of a better name...
interface Hostable {
public void install(Item item);
public boolean uninstall(Item item);
public Item installedItem();
}
interface Inspectable {
public void inspect();
public void setInspectMessage(String s);
}
interface Installable {
// marker
}
interface Killable {
public void kill();
}
interface Luminous {
}
interface Meltable {
public void setMeltItem(Item item);
public Item meltItem();
}
interface Openable {
public void open();
}
interface Pushable {
public void push();
}
interface Shakeable {
public void shake();
public boolean deadly();
}
interface Startable {
public void start();
}
interface Valuable {
public int value();
public void setValue(int value);
}
interface Visible {
public boolean isVisible();
public void setVisible(boolean b);
}
interface Wearable {
// marker
}