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:
@@ -0,0 +1,8 @@
|
||||
package net.islandearth.rpgregions.chests;
|
||||
|
||||
import org.bukkit.Location;
|
||||
|
||||
public abstract class RegionChest {
|
||||
|
||||
public abstract Location getChestLocation();
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user