DEADSOFTWARE

a452dad97896c4a5789225ec11f352a2f35cba7b
[LongFlight.git] / ObjectItem.java
1 package code.kalter.longflight;
3 import java.io.IOException;
5 /**
6 * Объект и путь к нему
7 *
8 * @author KalterFive
9 */
10 public class ObjectItem {
12 private final Object image;
13 private final String path;
15 public ObjectItem(Object object, String path) throws IOException {
16 this.path = path;
17 this.image = object;
18 }
20 public Object get(String path) {
21 if (this.path.equals(path)) {
22 return image;
23 }
24 return null;
25 }
26 }