9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2026-01-04 15:31:38 +00:00

Update javadocs, add WIP chests

This commit is contained in:
SamB440
2020-06-14 17:59:49 +01:00
parent 8bbe74b25d
commit 5d84675b31
8 changed files with 97 additions and 8 deletions

View File

@@ -0,0 +1,8 @@
package net.islandearth.rpgregions.chests;
import org.bukkit.Location;
public abstract class RegionChest {
public abstract Location getChestLocation();
}

View File

@@ -0,0 +1,28 @@
package net.islandearth.rpgregions.chests;
import org.bukkit.Location;
import org.bukkit.inventory.ItemStack;
import java.util.List;
public class RespawnableChest extends RegionChest {
private final Location location;
private final int respawnTime;
private final List<ItemStack> items;
public RespawnableChest(Location location, int respawnTime, List<ItemStack> items) {
this.location = location;
this.respawnTime = respawnTime;
this.items = items;
}
public int getRespawnTime() {
return respawnTime;
}
@Override
public Location getChestLocation() {
return location;
}
}