mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-30 22:53:39 +01:00
Removed entity and tile limit settings from world settings
The functionality of limiting certain entities or tile entities can be provided by an addon instead.
This commit is contained in:
parent
3ebbcd87e8
commit
f152d218fc
@ -49,11 +49,6 @@ public interface WorldSettings {
|
|||||||
*/
|
*/
|
||||||
void setDifficulty(Difficulty difficulty);
|
void setDifficulty(Difficulty difficulty);
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the entityLimits
|
|
||||||
*/
|
|
||||||
Map<EntityType, Integer> getEntityLimits();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the friendly name of the world. Used in player commands
|
* @return the friendly name of the world. Used in player commands
|
||||||
*/
|
*/
|
||||||
@ -135,11 +130,6 @@ public interface WorldSettings {
|
|||||||
*/
|
*/
|
||||||
int getSeaHeight();
|
int getSeaHeight();
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the tileEntityLimits
|
|
||||||
*/
|
|
||||||
Map<String, Integer> getTileEntityLimits();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return visible settings for player
|
* @return visible settings for player
|
||||||
*/
|
*/
|
||||||
|
@ -185,13 +185,6 @@ public class IslandWorldManager {
|
|||||||
.map(Map.Entry::getKey).findFirst().orElse(null);
|
.map(Map.Entry::getKey).findFirst().orElse(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the entityLimits
|
|
||||||
*/
|
|
||||||
public Map<EntityType, Integer> getEntityLimits(World world) {
|
|
||||||
return worldSettings.get(Util.getWorld(world)).getEntityLimits();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the islandDistance
|
* @return the islandDistance
|
||||||
*/
|
*/
|
||||||
@ -262,13 +255,6 @@ public class IslandWorldManager {
|
|||||||
return worldSettings.get(Util.getWorld(world)).getSeaHeight();
|
return worldSettings.get(Util.getWorld(world)).getSeaHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the tileEntityLimits
|
|
||||||
*/
|
|
||||||
public Map<String, Integer> getTileEntityLimits(World world) {
|
|
||||||
return worldSettings.get(Util.getWorld(world)).getTileEntityLimits();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the worldName
|
* @return the worldName
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user