Added some getters to the metadata pack.
This commit is contained in:
parent
c860ba1a15
commit
cf6a371428
@ -15,12 +15,27 @@ public class IslandMetadataPack {
|
|||||||
public void setMainBiome(Biome biome, Plugin owningPlugin) {
|
public void setMainBiome(Biome biome, Plugin owningPlugin) {
|
||||||
mainBiomeMetadata = new IslandMainBiomeMetadata(owningPlugin, biome);
|
mainBiomeMetadata = new IslandMainBiomeMetadata(owningPlugin, biome);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Biome getMainBiome() {
|
||||||
|
return mainBiomeMetadata.getMainBiome();
|
||||||
|
}
|
||||||
|
|
||||||
public void setShoreBiome(Biome biome, Plugin owningPlugin) {
|
public void setShoreBiome(Biome biome, Plugin owningPlugin) {
|
||||||
shoreBiomeMetadata = new IslandShoreBiomeMetadata(owningPlugin, biome);
|
shoreBiomeMetadata = new IslandShoreBiomeMetadata(owningPlugin, biome);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Biome getShoreBiome() {
|
||||||
|
return shoreBiomeMetadata.getShoreBiome();
|
||||||
|
}
|
||||||
|
|
||||||
public void setTemperature(float temperature, Plugin owningPlugin) {
|
public void setTemperature(float temperature, Plugin owningPlugin) {
|
||||||
temperatureMetadata = new IslandTemperatureMetadata(owningPlugin, temperature);
|
temperatureMetadata = new IslandTemperatureMetadata(owningPlugin, temperature);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public float getTemperature() {
|
||||||
|
return temperatureMetadata.getTemperature();
|
||||||
|
}
|
||||||
|
|
||||||
public void setTUID(String tiud, Plugin owningPlugin) {
|
public void setTUID(String tiud, Plugin owningPlugin) {
|
||||||
islandTIUDMetadata = new IslandTUIDMetadata(owningPlugin, tiud);
|
islandTIUDMetadata = new IslandTUIDMetadata(owningPlugin, tiud);
|
||||||
}
|
}
|
||||||
@ -28,7 +43,16 @@ public class IslandMetadataPack {
|
|||||||
public void setTUID(int worldX, int worldZ, Plugin owningPlugin) {
|
public void setTUID(int worldX, int worldZ, Plugin owningPlugin) {
|
||||||
setTUID((String.valueOf(worldX) + String.valueOf(worldZ)), owningPlugin);
|
setTUID((String.valueOf(worldX) + String.valueOf(worldZ)), owningPlugin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getTUID() {
|
||||||
|
return islandTIUDMetadata.getIUID();
|
||||||
|
}
|
||||||
|
|
||||||
public void setOwner(UUID uuid, Plugin owningPlugin) {
|
public void setOwner(UUID uuid, Plugin owningPlugin) {
|
||||||
ownerMetadata = new IslandOwnerMetadata(owningPlugin, uuid);
|
ownerMetadata = new IslandOwnerMetadata(owningPlugin, uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public UUID getOwner() {
|
||||||
|
return ownerMetadata.getUUID();
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user