Added some getters to the metadata pack.

This commit is contained in:
Harrison Deng 2020-04-20 20:26:04 -05:00
parent c860ba1a15
commit cf6a371428

View File

@ -15,12 +15,27 @@ public class IslandMetadataPack {
public void setMainBiome(Biome biome, Plugin owningPlugin) {
mainBiomeMetadata = new IslandMainBiomeMetadata(owningPlugin, biome);
}
public Biome getMainBiome() {
return mainBiomeMetadata.getMainBiome();
}
public void setShoreBiome(Biome biome, Plugin owningPlugin) {
shoreBiomeMetadata = new IslandShoreBiomeMetadata(owningPlugin, biome);
}
public Biome getShoreBiome() {
return shoreBiomeMetadata.getShoreBiome();
}
public void setTemperature(float temperature, Plugin owningPlugin) {
temperatureMetadata = new IslandTemperatureMetadata(owningPlugin, temperature);
}
public float getTemperature() {
return temperatureMetadata.getTemperature();
}
public void setTUID(String tiud, Plugin owningPlugin) {
islandTIUDMetadata = new IslandTUIDMetadata(owningPlugin, tiud);
}
@ -28,7 +43,16 @@ public class IslandMetadataPack {
public void setTUID(int worldX, int worldZ, Plugin owningPlugin) {
setTUID((String.valueOf(worldX) + String.valueOf(worldZ)), owningPlugin);
}
public String getTUID() {
return islandTIUDMetadata.getIUID();
}
public void setOwner(UUID uuid, Plugin owningPlugin) {
ownerMetadata = new IslandOwnerMetadata(owningPlugin, uuid);
}
public UUID getOwner() {
return ownerMetadata.getUUID();
}
}