Javadoc fixes

This commit is contained in:
Daniel Saukel 2018-07-28 21:15:58 +02:00
parent ffe73d777c
commit 272be6b392
118 changed files with 624 additions and 1058 deletions

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>de.erethon</groupId> <groupId>de.erethon</groupId>
<artifactId>dungeonsxl</artifactId> <artifactId>dungeonsxl</artifactId>
<version>0.16</version> <version>0.16.1-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>DungeonsXL</name> <name>DungeonsXL</name>
<url>https://dre2n.github.io</url> <url>https://dre2n.github.io</url>

View File

@ -56,8 +56,7 @@ import org.bukkit.event.HandlerList;
import org.bukkit.inventory.Inventory; import org.bukkit.inventory.Inventory;
/** /**
* The main class of DungeonsXL. * The main class of DungeonsXL. It contains several important instances and the actions when the plugin is enabled / disabled.
* It contains several important instances and the actions when the plugin is enabled / disabled.
* *
* @author Frank Baumann, Tobias Schmitz, Daniel Saukel * @author Frank Baumann, Tobias Schmitz, Daniel Saukel
*/ */
@ -282,6 +281,8 @@ public class DungeonsXL extends DREPlugin {
/** /**
* load / reload a new instance of GlobalData * load / reload a new instance of GlobalData
*
* @param file the file to load from
*/ */
public void loadGlobalData(File file) { public void loadGlobalData(File file) {
globalData = new GlobalData(file); globalData = new GlobalData(file);
@ -296,6 +297,8 @@ public class DungeonsXL extends DREPlugin {
/** /**
* load / reload a new instance of MainConfig * load / reload a new instance of MainConfig
*
* @param file the file to load from
*/ */
public void loadMainConfig(File file) { public void loadMainConfig(File file) {
mainConfig = new MainConfig(file); mainConfig = new MainConfig(file);
@ -303,6 +306,8 @@ public class DungeonsXL extends DREPlugin {
/** /**
* load / reload a new instance of MessageConfig * load / reload a new instance of MessageConfig
*
* @param file the file to load from
*/ */
public void loadMessageConfig(File file) { public void loadMessageConfig(File file) {
messageConfig = new MessageConfig(DMessage.class, file); messageConfig = new MessageConfig(DMessage.class, file);
@ -403,9 +408,11 @@ public class DungeonsXL extends DREPlugin {
/** /**
* load / reload a new instance of DungeonCache * load / reload a new instance of DungeonCache
*
* @param folder the folder to load from
*/ */
public void loadDungeons(File file) { public void loadDungeons(File folder) {
dungeons = new DungeonCache(file); dungeons = new DungeonCache(folder);
} }
/** /**
@ -459,9 +466,11 @@ public class DungeonsXL extends DREPlugin {
/** /**
* load / reload a new instance of AnnouncerCache * load / reload a new instance of AnnouncerCache
*
* @param folder the folder to load from
*/ */
public void loadAnnouncers(File file) { public void loadAnnouncers(File folder) {
announcers = new AnnouncerCache(file); announcers = new AnnouncerCache(folder);
} }
/** /**
@ -473,26 +482,32 @@ public class DungeonsXL extends DREPlugin {
/** /**
* load / reload a new instance of DClasseCache * load / reload a new instance of DClasseCache
*
* @param folder the folder to load from
*/ */
public void loadDClasses(File file) { public void loadDClasses(File folder) {
dClasses = new DClassCache(file); dClasses = new DClassCache(folder);
} }
/** /**
* load / reload loot tables * load / reload loot tables
*
* @param folder the folder to load from
*/ */
public void loadLootTables(File file) { public void loadLootTables(File folder) {
for (File script : FileUtil.getFilesForFolder(file)) { for (File script : FileUtil.getFilesForFolder(folder)) {
new LootTable(caliburn, script); new LootTable(caliburn, script);
} }
} }
/** /**
* load / reload DMob types * load / reload DMob types
*
* @param folder the folder to load from
*/ */
public void loadMobs(File file) { public void loadMobs(File folder) {
if (file.isDirectory()) { if (folder.isDirectory()) {
for (File script : FileUtil.getFilesForFolder(file)) { for (File script : FileUtil.getFilesForFolder(folder)) {
caliburn.getExMobs().add(new DMobType(script)); caliburn.getExMobs().add(new DMobType(script));
} }
} }
@ -508,9 +523,11 @@ public class DungeonsXL extends DREPlugin {
/** /**
* load / reload a new instance of SignScriptCache * load / reload a new instance of SignScriptCache
*
* @param folder the folder to load from
*/ */
public void loadSignScripts(File file) { public void loadSignScripts(File folder) {
signScripts = new SignScriptCache(file); signScripts = new SignScriptCache(folder);
} }
/** /**
@ -522,6 +539,8 @@ public class DungeonsXL extends DREPlugin {
/** /**
* load / reload a new instance of DWorldCache * load / reload a new instance of DWorldCache
*
* @param folder the folder to load from
*/ */
public void loadDWorlds(File folder) { public void loadDWorlds(File folder) {
dWorlds = new DWorldCache(MAPS); dWorlds = new DWorldCache(MAPS);

View File

@ -73,18 +73,15 @@ public class Announcer {
private AnnouncerStartGameTask startTask; private AnnouncerStartGameTask startTask;
/** /**
* @param file * @param file the script file
* the script file
*/ */
public Announcer(File file) { public Announcer(File file) {
this(file.getName().substring(0, file.getName().length() - 4), YamlConfiguration.loadConfiguration(file)); this(file.getName().substring(0, file.getName().length() - 4), YamlConfiguration.loadConfiguration(file));
} }
/** /**
* @param name * @param name the name of the Announcer
* the name of the Announcer * @param config the config that stores the information
* @param config
* the config that stores the information
*/ */
public Announcer(String name, FileConfiguration config) { public Announcer(String name, FileConfiguration config) {
this.name = name; this.name = name;
@ -115,20 +112,13 @@ public class Announcer {
} }
/** /**
* @param name * @param name the name of the Announcer
* the name of the Announcer * @param description the description messages
* @param description * @param worlds the names of the worlds where the announcement will be seen or null to broadcast it to all worlds
* the description messages * @param identifier the dungeon identifier
* @param worlds * @param multiFloor if the identifier refers to an MFD (true) or an SFD (false)
* the names of the worlds where the announcement will be seen or null to broadcast it to all worlds * @param maxGroupsPerGame the amount of groups in one game
* @param identifier * @param maxPlayersPerGroup the amount of players in one group
* the dungeon identifier
* @param multiFloor
* if the identifier refers to an MFD (true) or an SFD (false)
* @param maxGroupsPerGame
* the amount of groups in one game
* @param maxPlayersPerGame
* the amount of players in one group
*/ */
public Announcer(String name, List<String> description, List<String> worlds, String identifier, boolean multiFloor, short maxGroupsPerGame, int maxPlayersPerGroup) { public Announcer(String name, List<String> description, List<String> worlds, String identifier, boolean multiFloor, short maxGroupsPerGame, int maxPlayersPerGroup) {
this.name = name; this.name = name;
@ -168,8 +158,7 @@ public class Announcer {
} }
/** /**
* @param description * @param description the description to set
* the description to set
*/ */
public void setDescription(List<String> description) { public void setDescription(List<String> description) {
this.description = description; this.description = description;
@ -183,8 +172,7 @@ public class Announcer {
} }
/** /**
* @param worlds * @param worlds the worlds to set
* the worlds to set
*/ */
public void setWorlds(List<String> worlds) { public void setWorlds(List<String> worlds) {
this.worlds = worlds; this.worlds = worlds;
@ -198,8 +186,7 @@ public class Announcer {
} }
/** /**
* @param dungeonName * @param dungeonName the name of the dungeon to set
* the name of the dungeon to set
*/ */
public void setDungeonName(String dungeonName) { public void setDungeonName(String dungeonName) {
this.dungeonName = dungeonName; this.dungeonName = dungeonName;
@ -213,8 +200,7 @@ public class Announcer {
} }
/** /**
* @param mapName * @param mapName the name of the map to set
* the name of the map to set
*/ */
public void setMapName(String mapName) { public void setMapName(String mapName) {
this.mapName = mapName; this.mapName = mapName;
@ -228,8 +214,7 @@ public class Announcer {
} }
/** /**
* @param amount * @param amount the amount to set
* the amount to set
*/ */
public void setMinGroupsPerGame(int amount) { public void setMinGroupsPerGame(int amount) {
minGroupsPerGame = amount; minGroupsPerGame = amount;
@ -243,8 +228,7 @@ public class Announcer {
} }
/** /**
* @param amount * @param amount the amount to set
* the amount to set
*/ */
public void setMinPlayersPerGroup(int amount) { public void setMinPlayersPerGroup(int amount) {
minPlayersPerGroup = amount; minPlayersPerGroup = amount;
@ -258,8 +242,7 @@ public class Announcer {
} }
/** /**
* @param amount * @param amount the amount to set
* the amount to set
*/ */
public void setMaxGroupsPerGame(short amount) { public void setMaxGroupsPerGame(short amount) {
maxGroupsPerGame = amount; maxGroupsPerGame = amount;
@ -287,8 +270,7 @@ public class Announcer {
} }
/** /**
* @param amount * @param amount the amount to set
* the amount to set
*/ */
public void setMaxPlayersPerGroup(int amount) { public void setMaxPlayersPerGroup(int amount) {
maxPlayersPerGroup = amount; maxPlayersPerGroup = amount;
@ -325,6 +307,8 @@ public class Announcer {
/** /**
* Sends the announcement * Sends the announcement
*
* @param player the player
*/ */
public void send(Player player) { public void send(Player player) {
for (String message : description) { for (String message : description) {
@ -352,6 +336,8 @@ public class Announcer {
/** /**
* Shows the group selection GUI * Shows the group selection GUI
*
* @param player the player
*/ */
public void showGUI(Player player) { public void showGUI(Player player) {
updateButtons(); updateButtons();
@ -361,8 +347,8 @@ public class Announcer {
} }
/** /**
* @param button * @param player the player
* the clicked button * @param button the clicked button
*/ */
public void clickGroupButton(Player player, ItemStack button) { public void clickGroupButton(Player player, ItemStack button) {
DGroup dGroup = getDGroupByButton(button); DGroup dGroup = getDGroupByButton(button);
@ -452,8 +438,7 @@ public class Announcer {
} }
/** /**
* @param button * @param button the button
* the button
* @return the matching DGroup * @return the matching DGroup
*/ */
public DGroup getDGroupByButton(ItemStack button) { public DGroup getDGroupByButton(ItemStack button) {

View File

@ -50,6 +50,7 @@ public class AnnouncerCache {
} }
/** /**
* @param name the name
* @return the announcer that has the name * @return the announcer that has the name
*/ */
public Announcer getByName(String name) { public Announcer getByName(String name) {
@ -63,6 +64,7 @@ public class AnnouncerCache {
} }
/** /**
* @param gui the gui
* @return the announcer that has the GUI * @return the announcer that has the GUI
*/ */
public Announcer getByGUI(Inventory gui) { public Announcer getByGUI(Inventory gui) {
@ -83,16 +85,14 @@ public class AnnouncerCache {
} }
/** /**
* @param announcer * @param announcer the Announcer to add
* the Announcer to add
*/ */
public void addAnnouncer(Announcer announcer) { public void addAnnouncer(Announcer announcer) {
announcers.add(announcer); announcers.add(announcer);
} }
/** /**
* @param announcer * @param announcer the Announcer to remove
* the Announcer to remove
*/ */
public void removeAnnouncer(Announcer announcer) { public void removeAnnouncer(Announcer announcer) {
announcers.remove(announcer); announcers.remove(announcer);
@ -107,6 +107,8 @@ public class AnnouncerCache {
/** /**
* start a new AnnouncerTask * start a new AnnouncerTask
*
* @param period the period ticks
*/ */
public void startAnnouncerTask(long period) { public void startAnnouncerTask(long period) {
if (!announcers.isEmpty()) { if (!announcers.isEmpty()) {

View File

@ -21,8 +21,7 @@ import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.configuration.file.YamlConfiguration;
/** /**
* An enumeration of all messages. * An enumeration of all messages. The values are fetched from the language file.
* The values are fetched from the language file.
* *
* @author Daniel Saukel * @author Daniel Saukel
*/ */
@ -263,8 +262,8 @@ public enum DMessage implements Message {
/* Statics */ /* Statics */
/** /**
* @param identifier * @param identifier the identifier to set
* the identifier to set * @return the message
*/ */
public static Message getByIdentifier(String identifier) { public static Message getByIdentifier(String identifier) {
for (Message message : values()) { for (Message message : values()) {

View File

@ -124,8 +124,7 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param language * @param language the language to set
* the language to set
*/ */
public void setLanguage(String language) { public void setLanguage(String language) {
this.language = language; this.language = language;
@ -139,72 +138,63 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param enabled * @param enabled if DungeonsXL should use economy features provided by Vault
* if DungeonsXL should use economy features provided by Vault
*/ */
public void setEconomyEnabled(boolean enabled) { public void setEconomyEnabled(boolean enabled) {
enableEconomy = enabled; enableEconomy = enabled;
} }
/** /**
* @return * @return if the dungeon chat is enabled
* if the dungeon chat is enabled
*/ */
public boolean isChatEnabled() { public boolean isChatEnabled() {
return chatEnabled; return chatEnabled;
} }
/** /**
* @param enabled * @param enabled if the dungeon chat is enabled
* if the dungeon chat is enabled
*/ */
public void setChatEnabled(boolean enabled) { public void setChatEnabled(boolean enabled) {
chatEnabled = enabled; chatEnabled = enabled;
} }
/** /**
* @return * @return the game chat format
* the game chat format
*/ */
public String getChatFormatGame() { public String getChatFormatGame() {
return chatFormatGame; return chatFormatGame;
} }
/** /**
* @param string * @param string the game chat format to set
* the game chat format to set
*/ */
public void setChatFormatGame(String string) { public void setChatFormatGame(String string) {
chatFormatGame = string; chatFormatGame = string;
} }
/** /**
* @return * @return the group chat format
* the group chat format
*/ */
public String getChatFormatGroup() { public String getChatFormatGroup() {
return chatFormatGroup; return chatFormatGroup;
} }
/** /**
* @param string * @param string the group chat format to set
* the group chat format to set
*/ */
public void setChatFormatGroup(String string) { public void setChatFormatGroup(String string) {
chatFormatGroup = string; chatFormatGroup = string;
} }
/** /**
* @return * @return the chat spy format
* the chat spy format
*/ */
public String getChatFormatSpy() { public String getChatFormatSpy() {
return chatFormatSpy; return chatFormatSpy;
} }
/** /**
* @param string * @param string the chat spy format to set
* the chat spy format to set
*/ */
public void setChatFormatSpy(String string) { public void setChatFormatSpy(String string) {
chatFormatSpy = string; chatFormatSpy = string;
@ -218,8 +208,7 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param activated * @param activated if new players start in a tutorial
* if new players start in a tutorial
*/ */
public void setTutorialActivated(boolean activated) { public void setTutorialActivated(boolean activated) {
tutorialActivated = activated; tutorialActivated = activated;
@ -233,8 +222,7 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param dungeon * @param dungeon the tutorial dungeon to set
* the tutorial dungeon to set
*/ */
public void setTutorialDungeon(String dungeon) { public void setTutorialDungeon(String dungeon) {
tutorialDungeon = dungeon; tutorialDungeon = dungeon;
@ -248,8 +236,7 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param group * @param group the group the player gets when he plays the tutorial
* the group the player gets when he plays the tutorial
*/ */
public void setTutorialStartGroup(String group) { public void setTutorialStartGroup(String group) {
tutorialStartGroup = group; tutorialStartGroup = group;
@ -263,8 +250,7 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param group * @param group the group the player gets when he finshs the tutorial
* the group the player gets when he finshs the tutorial
*/ */
public void setTutorialEndGroup(String group) { public void setTutorialEndGroup(String group) {
tutorialEndGroup = group; tutorialEndGroup = group;
@ -278,8 +264,7 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param colors * @param colors the colors to set
* the colors to set
*/ */
public void setGroupColorPriority(List<DColor> colors) { public void setGroupColorPriority(List<DColor> colors) {
groupColorPriority = colors; groupColorPriority = colors;
@ -293,25 +278,21 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param interval * @param interval the interval to set
* the interval to set
*/ */
public void setAnnouncementInterval(double interval) { public void setAnnouncementInterval(double interval) {
announcementInterval = interval; announcementInterval = interval;
} }
/** /**
* @return * @return false if death messages shall be sent to players who are not in the dungeon, true if not
* false if death messages shall be sent to players who are not in the dungeon,
* true if not
*/ */
public boolean areGlobalDeathMessagesDisabled() { public boolean areGlobalDeathMessagesDisabled() {
return globalDeathMessagesDisabled; return globalDeathMessagesDisabled;
} }
/** /**
* @param disabled * @param disabled set if death messages shall be sent to players who are not in the dungeon
* set if death messages shall be sent to players who are not in the dungeon
*/ */
public void setGlobalDeathMessagesDisabled(boolean disabled) { public void setGlobalDeathMessagesDisabled(boolean disabled) {
globalDeathMessagesDisabled = false; globalDeathMessagesDisabled = false;
@ -325,8 +306,7 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param enabled * @param enabled if the floor title shall be sent
* if the floor title shall be sent
*/ */
public void setSendFloorTitleEnabled(boolean enabled) { public void setSendFloorTitleEnabled(boolean enabled) {
sendFloorTitle = enabled; sendFloorTitle = enabled;
@ -354,8 +334,7 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param maxInstances * @param maxInstances the maximum amount of worlds to instantiate at once
* the maximum amount of worlds to instantiate at once
*/ */
public void setMaxInstances(int maxInstances) { public void setMaxInstances(int maxInstances) {
this.maxInstances = maxInstances; this.maxInstances = maxInstances;
@ -369,8 +348,7 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param enabled * @param enabled if the performance tweaks are enabled
* if the performance tweaks are enabled
*/ */
public void setTweaksEnabled(boolean enabled) { public void setTweaksEnabled(boolean enabled) {
tweaksEnabled = enabled; tweaksEnabled = enabled;
@ -384,8 +362,7 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param enabled * @param enabled if the secure mode is enabled
* if the secure mode is enabled
*/ */
public void setSecureModeEnabled(boolean enabled) { public void setSecureModeEnabled(boolean enabled) {
secureModeEnabled = enabled; secureModeEnabled = enabled;
@ -399,8 +376,7 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param openInventories * @param openInventories if inventories can be opened in edit mode
* if inventories can be opened in edit mode
*/ */
public void setOpenInventories(boolean openInventories) { public void setOpenInventories(boolean openInventories) {
this.openInventories = openInventories; this.openInventories = openInventories;
@ -414,8 +390,7 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param dropItems * @param dropItems if items may be dropped in edit mode
* if items may be dropped in edit mode
*/ */
public void setDropItems(boolean dropItems) { public void setDropItems(boolean dropItems) {
this.dropItems = dropItems; this.dropItems = dropItems;
@ -429,8 +404,7 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param interval * @param interval the interval for the check task
* the interval for the check task
*/ */
public void setSecureModeCheckInterval(double interval) { public void setSecureModeCheckInterval(double interval) {
secureModeCheckInterval = interval; secureModeCheckInterval = interval;
@ -451,8 +425,7 @@ public class MainConfig extends DREConfig {
} }
/** /**
* @param mode * @param mode the BackupMode to set
* the BackupMode to set
*/ */
public void setBackupMode(BackupMode mode) { public void setBackupMode(BackupMode mode) {
backupMode = mode; backupMode = mode;

View File

@ -24,9 +24,8 @@ import java.util.Arrays;
import java.util.List; import java.util.List;
/** /**
* Represents a dungeon. * Represents a dungeon. While multi floor dungeon scripts are represented by {@link de.erethon.dungeonsxl.config.DungeonConfig}, single floor dungeons also get
* While multi floor dungeon scripts are represented by {@link de.erethon.dungeonsxl.config.DungeonConfig}, * a dungeon object without a config file as a placeholder.
* single floor dungeons also get a dungeon object without a config file as a placeholder.
* *
* @author Daniel Saukel * @author Daniel Saukel
*/ */
@ -38,6 +37,8 @@ public class Dungeon {
/** /**
* Real dungeon * Real dungeon
*
* @param file the file to load from
*/ */
public Dungeon(File file) { public Dungeon(File file) {
name = file.getName().replaceAll(".yml", ""); name = file.getName().replaceAll(".yml", "");
@ -47,6 +48,8 @@ public class Dungeon {
/** /**
* Artificial dungeon * Artificial dungeon
*
* @param resource the only resource world
*/ */
public Dungeon(DResourceWorld resource) { public Dungeon(DResourceWorld resource) {
name = resource.getName(); name = resource.getName();
@ -61,8 +64,7 @@ public class Dungeon {
} }
/** /**
* @param name * @param name the name to set
* the name to set
*/ */
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
@ -83,8 +85,7 @@ public class Dungeon {
} }
/** /**
* @return * @return the floors of the dungeon
* the floors of the dungeon
*/ */
public List<DResourceWorld> getFloors() { public List<DResourceWorld> getFloors() {
if (isMultiFloor()) { if (isMultiFloor()) {
@ -95,16 +96,14 @@ public class Dungeon {
} }
/** /**
* @return * @return the SFD map / start floor
* the SFD map / start floor
*/ */
public DResourceWorld getMap() { public DResourceWorld getMap() {
return map; return map;
} }
/** /**
* @param map * @param map the SFD map / start floor to set
* the SFD map / start floor to set
*/ */
public void setMap(DResourceWorld map) { public void setMap(DResourceWorld map) {
this.map = map; this.map = map;
@ -124,10 +123,8 @@ public class Dungeon {
/* Statics */ /* Statics */
/** /**
* @param name * @param name the name of the dungeon
* the name of the dungeon * @return the file. Might not exist
* @return
* the file. Might not exist
*/ */
public static File getFileFromName(String name) { public static File getFileFromName(String name) {
return new File(DungeonsXL.DUNGEONS, name + ".yml"); return new File(DungeonsXL.DUNGEONS, name + ".yml");

View File

@ -49,8 +49,7 @@ public class DungeonCache {
} }
/** /**
* @param name * @param name the name of the Dungeon
* the name of the Dungeon
* @return the Dungeon that has the name * @return the Dungeon that has the name
*/ */
public Dungeon getByName(String name) { public Dungeon getByName(String name) {
@ -71,8 +70,7 @@ public class DungeonCache {
} }
/** /**
* @param name * @param name the name of the Dungeon
* the name of the Dungeon
* @return the Dungeon that has the name * @return the Dungeon that has the name
*/ */
public Dungeon loadDungeon(String name) { public Dungeon loadDungeon(String name) {
@ -82,16 +80,14 @@ public class DungeonCache {
} }
/** /**
* @param dungeon * @param dungeon the dungeon to add
* the dungeon to add
*/ */
public void addDungeon(Dungeon dungeon) { public void addDungeon(Dungeon dungeon) {
dungeons.add(dungeon); dungeons.add(dungeon);
} }
/** /**
* @param dungeon * @param dungeon the dungeon to remove
* the dungeon to remove
*/ */
public void removeDungeon(Dungeon dungeon) { public void removeDungeon(Dungeon dungeon) {
dungeons.remove(dungeon); dungeons.remove(dungeon);

View File

@ -61,8 +61,7 @@ public class DungeonConfig extends DREConfig {
} }
/** /**
* @param startFloor * @param startFloor the startFloor to set
* the startFloor to set
*/ */
public void setStartFloor(DResourceWorld startFloor) { public void setStartFloor(DResourceWorld startFloor) {
this.startFloor = startFloor; this.startFloor = startFloor;
@ -76,8 +75,7 @@ public class DungeonConfig extends DREConfig {
} }
/** /**
* @param endFloor * @param endFloor the endFloor to set
* the endFloor to set
*/ */
public void setEndFloor(DResourceWorld endFloor) { public void setEndFloor(DResourceWorld endFloor) {
this.endFloor = endFloor; this.endFloor = endFloor;
@ -91,16 +89,14 @@ public class DungeonConfig extends DREConfig {
} }
/** /**
* @param resource * @param resource the resource to add
* the resource to add
*/ */
public void addFloor(DResourceWorld resource) { public void addFloor(DResourceWorld resource) {
floors.add(resource); floors.add(resource);
} }
/** /**
* @param resource * @param resource the resource to remove
* the resource to remove
*/ */
public void removeFloor(DResourceWorld resource) { public void removeFloor(DResourceWorld resource) {
floors.remove(resource); floors.remove(resource);
@ -114,8 +110,7 @@ public class DungeonConfig extends DREConfig {
} }
/** /**
* @param floorCount * @param floorCount the floorCount to set
* the floorCount to set
*/ */
public void setFloorCount(int floorCount) { public void setFloorCount(int floorCount) {
this.floorCount = floorCount; this.floorCount = floorCount;
@ -129,16 +124,14 @@ public class DungeonConfig extends DREConfig {
} }
/** /**
* @param removeWhenPlayed * @param removeWhenPlayed the removeWhenPlayed to set
* the removeWhenPlayed to set
*/ */
public void setRemoveWhenPlayed(boolean removeWhenPlayed) { public void setRemoveWhenPlayed(boolean removeWhenPlayed) {
this.removeWhenPlayed = removeWhenPlayed; this.removeWhenPlayed = removeWhenPlayed;
} }
/** /**
* The values from this WorldConfig will override all values of the * The values from this WorldConfig will override all values of the WorldConfigs of inherited maps.
* WorldConfigs of inherited maps.
* *
* @return the override values * @return the override values
*/ */
@ -147,17 +140,15 @@ public class DungeonConfig extends DREConfig {
} }
/** /**
* @param worldConfig * @param worldConfig the WorldConfig to set
* the WorldConfig to set
*/ */
public void setOverrideValues(WorldConfig worldConfig) { public void setOverrideValues(WorldConfig worldConfig) {
overrideValues = worldConfig; overrideValues = worldConfig;
} }
/** /**
* The values from this WorldConfig will get overriden by values of the * The values from this WorldConfig will get overriden by values of the WorldConfigs of inherited maps. They will still override the values from the main
* WorldConfigs of inherited maps. * config, though.
* They will still override the values from the main config, though.
* *
* @return the default values * @return the default values
*/ */
@ -166,16 +157,14 @@ public class DungeonConfig extends DREConfig {
} }
/** /**
* @param worldConfig * @param worldConfig the WorldConfig to set
* the WorldConfig to set
*/ */
public void setDefaultValues(WorldConfig worldConfig) { public void setDefaultValues(WorldConfig worldConfig) {
defaultValues = worldConfig; defaultValues = worldConfig;
} }
/** /**
* @param resource * @param resource the DResourceWorld to check
* the DResourceWorld to check
* @return true if the floor is either in the list or the start / end floor. * @return true if the floor is either in the list or the start / end floor.
*/ */
public boolean containsFloor(DResourceWorld resource) { public boolean containsFloor(DResourceWorld resource) {
@ -183,8 +172,7 @@ public class DungeonConfig extends DREConfig {
} }
/** /**
* @param mapName * @param mapName the name of the map to check
* the name of the map to check
* @return true if the floor is either in the list or the start / end floor. * @return true if the floor is either in the list or the start / end floor.
*/ */
public boolean containsFloor(String mapName) { public boolean containsFloor(String mapName) {

View File

@ -56,8 +56,7 @@ public class DGroupCreateEvent extends DGroupEvent implements Cancellable {
} }
/** /**
* @param creator * @param creator the creator to set
* the creator to set
*/ */
public void setCreator(Player creator) { public void setCreator(Player creator) {
this.creator = creator; this.creator = creator;
@ -71,8 +70,7 @@ public class DGroupCreateEvent extends DGroupEvent implements Cancellable {
} }
/** /**
* @param cause * @param cause the cause to set
* the cause to set
*/ */
public void setCause(Cause cause) { public void setCause(Cause cause) {
this.cause = cause; this.cause = cause;

View File

@ -62,8 +62,7 @@ public class DGroupDisbandEvent extends DGroupEvent implements Cancellable {
} }
/** /**
* @param disbander * @param disbander the disbander to set
* the disbander to set
*/ */
public void setDisbander(Player disbander) { public void setDisbander(Player disbander) {
this.disbander = disbander; this.disbander = disbander;
@ -77,8 +76,7 @@ public class DGroupDisbandEvent extends DGroupEvent implements Cancellable {
} }
/** /**
* @param cause * @param cause the cause to set
* the cause to set
*/ */
public void setCause(Cause cause) { public void setCause(Cause cause) {
this.cause = cause; this.cause = cause;

View File

@ -38,8 +38,7 @@ public abstract class DGroupEvent extends Event {
} }
/** /**
* @param dGroup * @param dGroup the dGroup to set
* the dGroup to set
*/ */
public void setDGroup(DGroup dGroup) { public void setDGroup(DGroup dGroup) {
this.dGroup = dGroup; this.dGroup = dGroup;

View File

@ -44,8 +44,7 @@ public class DGroupFinishDungeonEvent extends DGroupEvent implements Cancellable
} }
/** /**
* @param dungeon * @param dungeon the dungeon to set
* the dungeon to set
*/ */
public void setDisbander(Dungeon dungeon) { public void setDisbander(Dungeon dungeon) {
this.dungeon = dungeon; this.dungeon = dungeon;

View File

@ -47,8 +47,7 @@ public class DGroupFinishFloorEvent extends DGroupEvent implements Cancellable {
} }
/** /**
* @param finished * @param finished the name of the DGameWorld to set
* the name of the DGameWorld to set
*/ */
public void setFinished(DGameWorld finished) { public void setFinished(DGameWorld finished) {
this.finished = finished; this.finished = finished;
@ -62,8 +61,7 @@ public class DGroupFinishFloorEvent extends DGroupEvent implements Cancellable {
} }
/** /**
* @param next * @param next the resource to set
* the resource to set
*/ */
public void setNext(DResourceWorld next) { public void setNext(DResourceWorld next) {
this.next = next; this.next = next;

View File

@ -48,16 +48,14 @@ public class DGroupRewardEvent extends DGroupEvent implements Cancellable {
} }
/** /**
* @param reward * @param reward the reward to add
* the reward to add
*/ */
public void addRewards(Reward reward) { public void addRewards(Reward reward) {
rewards.add(reward); rewards.add(reward);
} }
/** /**
* @param reward * @param reward the reward to remove
* the reward to remove
*/ */
public void removeRewards(Reward reward) { public void removeRewards(Reward reward) {
rewards.remove(reward); rewards.remove(reward);
@ -71,16 +69,14 @@ public class DGroupRewardEvent extends DGroupEvent implements Cancellable {
} }
/** /**
* @param player * @param player the player to add
* the player to add
*/ */
public void addExcludedPlayer(Player player) { public void addExcludedPlayer(Player player) {
excludedPlayers.add(player); excludedPlayers.add(player);
} }
/** /**
* @param player * @param player the player to remove
* the player to remove
*/ */
public void removeExcludedPlayer(Player player) { public void removeExcludedPlayer(Player player) {
excludedPlayers.remove(player); excludedPlayers.remove(player);

View File

@ -46,8 +46,7 @@ public class DGroupScoreEvent extends DGroupEvent implements Cancellable {
} }
/** /**
* @param scorer * @param scorer the scoerer to set
* the scoerer to set
*/ */
public void setCreator(Player scorer) { public void setCreator(Player scorer) {
this.scorer = scorer; this.scorer = scorer;
@ -61,8 +60,7 @@ public class DGroupScoreEvent extends DGroupEvent implements Cancellable {
} }
/** /**
* @param loserGroup * @param loserGroup the group that lost a score to the scorers to set
* the group that lost a score to the scorers to set
*/ */
public void setLoserGroup(DGroup loserGroup) { public void setLoserGroup(DGroup loserGroup) {
this.loserGroup = loserGroup; this.loserGroup = loserGroup;

View File

@ -44,8 +44,7 @@ public class DGroupStartFloorEvent extends DGroupEvent implements Cancellable {
} }
/** /**
* @param gameWorld * @param gameWorld the gameWorld to set
* the gameWorld to set
*/ */
public void setGameWorld(DGameWorld gameWorld) { public void setGameWorld(DGameWorld gameWorld) {
this.gameWorld = gameWorld; this.gameWorld = gameWorld;

View File

@ -44,8 +44,7 @@ public class DMobDeathEvent extends DMobEvent implements Cancellable {
} }
/** /**
* @param bukkitEvent * @param bukkitEvent the bukkitEvent to set
* the bukkitEvent to set
*/ */
public void setBukkitEvent(EntityDeathEvent bukkitEvent) { public void setBukkitEvent(EntityDeathEvent bukkitEvent) {
this.bukkitEvent = bukkitEvent; this.bukkitEvent = bukkitEvent;

View File

@ -38,8 +38,7 @@ public abstract class DMobEvent extends Event {
} }
/** /**
* @param dMob * @param dMob the dMob to set
* the dMob to set
*/ */
public void setDMob(DMob dMob) { public void setDMob(DMob dMob) {
this.dMob = dMob; this.dMob = dMob;

View File

@ -38,8 +38,7 @@ public abstract class DPlayerEvent extends Event {
} }
/** /**
* @param dPlayer * @param dPlayer the dPlayer to set
* the dPlayer to set
*/ */
public void setDPlayer(DGlobalPlayer dPlayer) { public void setDPlayer(DGlobalPlayer dPlayer) {
this.dPlayer = dPlayer; this.dPlayer = dPlayer;

View File

@ -53,8 +53,7 @@ public class DPlayerKickEvent extends DPlayerEvent implements Cancellable {
} }
/** /**
* @param cause * @param cause the cause to set
* the cause to set
*/ */
public void setCause(Cause cause) { public void setCause(Cause cause) {
this.cause = cause; this.cause = cause;

View File

@ -53,8 +53,7 @@ public class DInstancePlayerUpdateEvent extends DInstancePlayerEvent implements
} }
/** /**
* @param locationValid * @param locationValid set if the location is valid
* set if the location is valid
*/ */
public void setLocationValid(boolean locationValid) { public void setLocationValid(boolean locationValid) {
this.locationValid = locationValid; this.locationValid = locationValid;
@ -68,8 +67,7 @@ public class DInstancePlayerUpdateEvent extends DInstancePlayerEvent implements
} }
/** /**
* @param teleportWolf * @param teleportWolf set if the wolf gets teleported
* set if the wolf gets teleported
*/ */
public void setTeleportWolf(boolean teleportWolf) { public void setTeleportWolf(boolean teleportWolf) {
this.teleportWolf = teleportWolf; this.teleportWolf = teleportWolf;
@ -83,8 +81,7 @@ public class DInstancePlayerUpdateEvent extends DInstancePlayerEvent implements
} }
/** /**
* @param respawnInventory * @param respawnInventory respawn the player's old inventory on this update?
* respawn the player's old inventory on this update?
*/ */
public void setRespawnInventory(boolean respawnInventory) { public void setRespawnInventory(boolean respawnInventory) {
this.respawnInventory = respawnInventory; this.respawnInventory = respawnInventory;
@ -105,8 +102,7 @@ public class DInstancePlayerUpdateEvent extends DInstancePlayerEvent implements
} }
/** /**
* @param kick * @param kick if the player gets kicked from the dungeon
* if the player gets kicked from the dungeon
*/ */
public void setKick(boolean kick) { public void setKick(boolean kick) {
this.kick = kick; this.kick = kick;
@ -120,8 +116,7 @@ public class DInstancePlayerUpdateEvent extends DInstancePlayerEvent implements
} }
/** /**
* @param triggerAllInDistance * @param triggerAllInDistance the triggerAllInDistance to set
* the triggerAllInDistance to set
*/ */
public void setTriggerAllInDistance(boolean triggerAllInDistance) { public void setTriggerAllInDistance(boolean triggerAllInDistance) {
this.triggerAllInDistance = triggerAllInDistance; this.triggerAllInDistance = triggerAllInDistance;

View File

@ -46,8 +46,7 @@ public class DGamePlayerDeathEvent extends DGamePlayerEvent implements Cancellab
} }
/** /**
* @param bukkitEvent * @param bukkitEvent the bukkitEvent to set
* the bukkitEvent to set
*/ */
public void setBukkitEvent(PlayerDeathEvent bukkitEvent) { public void setBukkitEvent(PlayerDeathEvent bukkitEvent) {
this.bukkitEvent = bukkitEvent; this.bukkitEvent = bukkitEvent;
@ -61,8 +60,7 @@ public class DGamePlayerDeathEvent extends DGamePlayerEvent implements Cancellab
} }
/** /**
* @param lostLives * @param lostLives the lostLives to set
* the lostLives to set
*/ */
public void setLostLives(int lostLives) { public void setLostLives(int lostLives) {
this.lostLives = lostLives; this.lostLives = lostLives;

View File

@ -43,8 +43,7 @@ public class DGamePlayerFinishEvent extends DGamePlayerEvent implements Cancella
} }
/** /**
* @param hasToWait * @param hasToWait the hasToWait to set
* the hasToWait to set
*/ */
public void setHasToWait(boolean hasToWait) { public void setHasToWait(boolean hasToWait) {
this.hasToWait = hasToWait; this.hasToWait = hasToWait;

View File

@ -38,8 +38,7 @@ public abstract class DSignEvent extends Event {
} }
/** /**
* @param dSign * @param dSign the dSign to set
* the dSign to set
*/ */
public void setDSign(DSign dSign) { public void setDSign(DSign dSign) {
this.dSign = dSign; this.dSign = dSign;

View File

@ -47,8 +47,7 @@ public class DSignRegistrationEvent extends DSignEvent implements Cancellable {
} }
/** /**
* @param sign * @param sign the sign to set
* the sign to set
*/ */
public void setSign(Sign sign) { public void setSign(Sign sign) {
this.sign = sign; this.sign = sign;
@ -62,8 +61,7 @@ public class DSignRegistrationEvent extends DSignEvent implements Cancellable {
} }
/** /**
* @param gameWorld * @param gameWorld the gameWorld to set
* the gameWorld to set
*/ */
public void setGameWorld(DGameWorld gameWorld) { public void setGameWorld(DGameWorld gameWorld) {
this.gameWorld = gameWorld; this.gameWorld = gameWorld;

View File

@ -38,8 +38,7 @@ public abstract class EditWorldEvent extends Event {
} }
/** /**
* @param editWorld * @param editWorld the editWorld to set
* the editWorld to set
*/ */
public void setEditWorld(DEditWorld editWorld) { public void setEditWorld(DEditWorld editWorld) {
this.editWorld = editWorld; this.editWorld = editWorld;

View File

@ -42,8 +42,7 @@ public class EditWorldLoadEvent extends Event implements Cancellable {
} }
/** /**
* @param name * @param name the name to set
* the name to set
*/ */
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;

View File

@ -43,8 +43,7 @@ public class EditWorldUnloadEvent extends EditWorldEvent implements Cancellable
} }
/** /**
* @param save * @param save the save to set
* the save to set
*/ */
public void setSave(boolean save) { public void setSave(boolean save) {
this.save = save; this.save = save;

View File

@ -38,8 +38,7 @@ public abstract class GameWorldEvent extends Event {
} }
/** /**
* @param gameWorld * @param gameWorld the gameWorld to set
* the gameWorld to set
*/ */
public void setGameWorld(DGameWorld gameWorld) { public void setGameWorld(DGameWorld gameWorld) {
this.gameWorld = gameWorld; this.gameWorld = gameWorld;

View File

@ -42,8 +42,7 @@ public class GameWorldLoadEvent extends Event implements Cancellable {
} }
/** /**
* @param name * @param name the name to set
* the name to set
*/ */
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;

View File

@ -44,8 +44,7 @@ public class GameWorldStartGameEvent extends GameWorldEvent implements Cancellab
} }
/** /**
* @param game * @param game the game to set
* the game to set
*/ */
public void setGame(Game game) { public void setGame(Game game) {
this.game = game; this.game = game;

View File

@ -44,8 +44,7 @@ public class RequirementCheckEvent extends RequirementEvent implements Cancellab
} }
/** /**
* @param player * @param player the player to set
* the player to set
*/ */
public void setPlayer(Player player) { public void setPlayer(Player player) {
this.player = player; this.player = player;

View File

@ -44,8 +44,7 @@ public class RequirementDemandEvent extends RequirementEvent implements Cancella
} }
/** /**
* @param player * @param player the player to set
* the player to set
*/ */
public void setPlayer(Player player) { public void setPlayer(Player player) {
this.player = player; this.player = player;

View File

@ -39,8 +39,7 @@ public abstract class RequirementEvent extends Event {
} }
/** /**
* @param requirement * @param requirement the requirement to set
* the requirement to set
*/ */
public void setRequirement(Requirement requirement) { public void setRequirement(Requirement requirement) {
this.requirement = requirement; this.requirement = requirement;

View File

@ -44,8 +44,7 @@ public class RewardAdditionEvent extends RewardEvent implements Cancellable {
} }
/** /**
* @param dGroup * @param dGroup the dGroup to set
* the dGroup to set
*/ */
public void setDGroup(DGroup dGroup) { public void setDGroup(DGroup dGroup) {
this.dGroup = dGroup; this.dGroup = dGroup;

View File

@ -38,8 +38,7 @@ public abstract class RewardEvent extends Event {
} }
/** /**
* @param reward * @param reward the reward to set
* the reward to set
*/ */
public void setReward(Reward reward) { public void setReward(Reward reward) {
this.reward = reward; this.reward = reward;

View File

@ -33,8 +33,7 @@ public class TriggerRegistrationEvent extends TriggerEvent implements Cancellabl
} }
/** /**
* @param trigger * @param trigger the trigger to set
* the trigger to set
*/ */
public void setTrigger(Trigger trigger) { public void setTrigger(Trigger trigger) {
this.trigger = trigger; this.trigger = trigger;

View File

@ -41,8 +41,7 @@ import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable; import org.bukkit.scheduler.BukkitRunnable;
/** /**
* Game mostly stores for which purposes and how a {@link de.erethon.dungeonsxl.dungeon.Dungeon} is used, * Game mostly stores for which purposes and how a {@link de.erethon.dungeonsxl.dungeon.Dungeon} is used, the player groups and the progress.
* the player groups and the progress.
* *
* @author Daniel Saukel * @author Daniel Saukel
*/ */
@ -135,8 +134,7 @@ public class Game {
} }
/** /**
* @param tutorial * @param tutorial if the DGameWorld is the tutorial
* if the DGameWorld is the tutorial
*/ */
public void setTutorial(boolean tutorial) { public void setTutorial(boolean tutorial) {
this.tutorial = tutorial; this.tutorial = tutorial;
@ -150,8 +148,7 @@ public class Game {
} }
/** /**
* @param dGroup * @param dGroup the dGroups to add
* the dGroups to add
*/ */
public void addDGroup(DGroup dGroup) { public void addDGroup(DGroup dGroup) {
dGroups.add(dGroup); dGroups.add(dGroup);
@ -162,8 +159,7 @@ public class Game {
} }
/** /**
* @param dGroup * @param dGroup the dGroups to remove
* the dGroups to remove
*/ */
public void removeDGroup(DGroup dGroup) { public void removeDGroup(DGroup dGroup) {
dGroups.remove(dGroup); dGroups.remove(dGroup);
@ -181,8 +177,7 @@ public class Game {
} }
/** /**
* @param started * @param started set if the Game has started yet
* set if the Game has started yet
*/ */
public void setStarted(boolean started) { public void setStarted(boolean started) {
this.started = started; this.started = started;
@ -196,8 +191,7 @@ public class Game {
} }
/** /**
* @param type * @param type the type to set
* the type to set
*/ */
public void setType(GameType type) { public void setType(GameType type) {
this.type = type; this.type = type;
@ -211,8 +205,7 @@ public class Game {
} }
/** /**
* @param world * @param world the DGameWorld to connect to the Game
* the DGameWorld to connect to the Game
*/ */
public void setWorld(DGameWorld world) { public void setWorld(DGameWorld world) {
this.world = world; this.world = world;
@ -226,21 +219,15 @@ public class Game {
} }
/** /**
* @param rules * @param rules the GameRules to set
* the GameRules to set
*/ */
public void setRules(GameRuleProvider rules) { public void setRules(GameRuleProvider rules) {
this.rules = rules; this.rules = rules;
} }
/** /**
* Fetchs the rules with the following priority: * Fetchs the rules with the following priority: 1. Game type 2. Dungeon config: Override values 3. Floor config 4. Dungeon config: Default values 5. Main
* 1. Game type * config: Default values 6. The default values
* 2. Dungeon config: Override values
* 3. Floor config
* 4. Dungeon config: Default values
* 5. Main config: Default values
* 6. The default values
*/ */
public void fetchRules() { public void fetchRules() {
DungeonConfig dungeonConfig = null; DungeonConfig dungeonConfig = null;
@ -316,8 +303,7 @@ public class Game {
} }
/** /**
* @param waveCount * @param waveCount the waveCount to set
* the waveCount to set
*/ */
public void setWaveCount(int waveCount) { public void setWaveCount(int waveCount) {
this.waveCount = waveCount; this.waveCount = waveCount;
@ -346,8 +332,7 @@ public class Game {
} }
/** /**
* @param killer * @param killer the killer; null if the killer is not a player
* the killer; null if the killer is not a player
*/ */
public void addKill(String killer) { public void addKill(String killer) {
if (killer == null) { if (killer == null) {
@ -406,10 +391,8 @@ public class Game {
} }
/** /**
* @param mobCountIncreaseRate * @param mobCountIncreaseRate the new mob count will be increased by this rate
* the new mob count will be increased by this rate * @param teleport whether or not to teleport the players to the start location
* @param teleport
* whether or not to teleport the players to the start location
*/ */
public void finishWave(final double mobCountIncreaseRate, final boolean teleport) { public void finishWave(final double mobCountIncreaseRate, final boolean teleport) {
waveCount++; waveCount++;

View File

@ -24,13 +24,11 @@ package de.erethon.dungeonsxl.game;
public enum GameGoal { public enum GameGoal {
/** /**
* The default goal. * The default goal. The game ends when the end is reached.
* The game ends when the end is reached.
*/ */
END, END,
/** /**
* The game does not end. * The game does not end. Instead, the goal is to survive as long as possible to beat a highscore.
* Instead, the goal is to survive as long as possible to beat a highscore.
*/ */
HIGHSCORE, HIGHSCORE,
/** /**
@ -42,13 +40,11 @@ public enum GameGoal {
*/ */
REACH_SCORE, REACH_SCORE,
/** /**
* The game ends after a specific time. * The game ends after a specific time. The goal is to get the highest score until then.
* The goal is to get the highest score until then.
*/ */
TIME_SCORE, TIME_SCORE,
/** /**
* The game ends after a specific time. * The game ends after a specific time. The goal is to survive until then.
* The goal is to survive until then.
*/ */
TIME_SURVIVAL; TIME_SURVIVAL;

View File

@ -261,50 +261,42 @@ public class GameRuleProvider {
} }
/** /**
* @return * @return if it's raining permanently in this dungeon, null if random
* if it's raining permanently in this dungeon,
* null if random
*/ */
public Boolean isRaining() { public Boolean isRaining() {
return rain; return rain;
} }
/** /**
* @param rain * @param rain set if it's raining permanently in this dungeon
* set if it's raining permanently in this dungeon
*/ */
public void setRaining(Boolean rain) { public void setRaining(Boolean rain) {
this.rain = rain; this.rain = rain;
} }
/** /**
* @return * @return You've been... THUNDERSTRUCK!
* You've been... THUNDERSTRUCK!
*/ */
public Boolean isThundering() { public Boolean isThundering() {
return thunder; return thunder;
} }
/** /**
* @param thunder * @param thunder You've been... THUNDERSTRUCK!
* You've been... THUNDERSTRUCK!
*/ */
public void setThundering(Boolean thunder) { public void setThundering(Boolean thunder) {
this.thunder = thunder; this.thunder = thunder;
} }
/** /**
* @return * @return the locked day time in this dungeon, null if not locked
* the locked day time in this dungeon,
* null if not locked
*/ */
public Long getTime() { public Long getTime() {
return time; return time;
} }
/** /**
* @param time * @param time the locked day time to set
* the locked day time to set
*/ */
public void setTime(Long time) { public void setTime(Long time) {
this.time = time; this.time = time;
@ -432,8 +424,7 @@ public class GameRuleProvider {
} }
/** /**
* @return all maps needed to be finished to play this map and a collection of maps of which at * @return all maps needed to be finished to play this map and a collection of maps of which at least one has to be finished
* least one has to be finished
*/ */
public List<String> getFinished() { public List<String> getFinished() {
if (finishedAll == null) { if (finishedAll == null) {
@ -489,8 +480,7 @@ public class GameRuleProvider {
} }
/** /**
* @param text * @param text the text to set
* the text to set
*/ */
public void setTitle(String text) { public void setTitle(String text) {
title = text; title = text;
@ -504,8 +494,7 @@ public class GameRuleProvider {
} }
/** /**
* @param text * @param text the text to set
* the text to set
*/ */
public void setSubTitle(String text) { public void setSubTitle(String text) {
subtitle = text; subtitle = text;
@ -519,8 +508,7 @@ public class GameRuleProvider {
} }
/** /**
* @param text * @param text the text to set
* the text to set
*/ */
public void setActionBar(String text) { public void setActionBar(String text) {
actionBar = text; actionBar = text;
@ -534,8 +522,7 @@ public class GameRuleProvider {
} }
/** /**
* @param text * @param text the text to set
* the text to set
*/ */
public void setChatText(String text) { public void setChatText(String text) {
chat = text; chat = text;
@ -549,8 +536,7 @@ public class GameRuleProvider {
} }
/** /**
* @param time * @param time the time to set
* the time to set
*/ */
public void setTitleFadeIn(int time) { public void setTitleFadeIn(int time) {
titleFadeIn = time; titleFadeIn = time;
@ -564,8 +550,7 @@ public class GameRuleProvider {
} }
/** /**
* @param time * @param time the time to set
* the time to set
*/ */
public void setTitleFadeOut(int time) { public void setTitleFadeOut(int time) {
titleFadeOut = time; titleFadeOut = time;
@ -579,8 +564,7 @@ public class GameRuleProvider {
} }
/** /**
* @param time * @param time the time to set
* the time to set
*/ */
public void setTitleShow(int time) { public void setTitleShow(int time) {
titleShow = time; titleShow = time;
@ -588,8 +572,8 @@ public class GameRuleProvider {
// Misc // Misc
/** /**
* @param id * @param id the id of the message
* the id of the message * @return the message
*/ */
public String getMessage(int id) { public String getMessage(int id) {
if (msgs == null) { if (msgs == null) {
@ -599,10 +583,8 @@ public class GameRuleProvider {
} }
/** /**
* @param id * @param id the ID of the message
* the ID of the message * @param msg the message to set
* @param msg
* the message to set
*/ */
public void setMessage(int id, String msg) { public void setMessage(int id, String msg) {
if (msgs == null) { if (msgs == null) {
@ -622,9 +604,7 @@ public class GameRuleProvider {
} }
/** /**
* @return * @return if the group tag is enabled. Returns false if HolographicDisplays isn't loaded
* if the group tag is enabled.
* Returns false if HolographicDisplays isn't loaded
*/ */
public boolean isGroupTagEnabled() { public boolean isGroupTagEnabled() {
if (!Bukkit.getPluginManager().isPluginEnabled("HolographicDisplays")) { if (!Bukkit.getPluginManager().isPluginEnabled("HolographicDisplays")) {
@ -635,8 +615,7 @@ public class GameRuleProvider {
/* Actions */ /* Actions */
/** /**
* @param defaultValues * @param defaultValues the GameType that overrides the values that are null.
* the GameType that overrides the values that are null.
*/ */
public void apply(GameType defaultValues) { public void apply(GameType defaultValues) {
if (playerVersusPlayer == null) { if (playerVersusPlayer == null) {
@ -675,8 +654,7 @@ public class GameRuleProvider {
} }
/** /**
* @param defaultValues * @param defaultValues the GameRules that override the values that are null.
* the GameRules that override the values that are null.
*/ */
public void apply(GameRuleProvider defaultValues) { public void apply(GameRuleProvider defaultValues) {
/* keepInventory */ /* keepInventory */

View File

@ -31,8 +31,7 @@ public interface GameType {
public String getDisplayName(); public String getDisplayName();
/** /**
* @param displayName * @param displayName the displayName to set
* the displayName to set
*/ */
public void setDisplayName(String displayName); public void setDisplayName(String displayName);
@ -42,8 +41,7 @@ public interface GameType {
public String getSignName(); public String getSignName();
/** /**
* @param signName * @param signName the signName to set
* the signName to set
*/ */
public void setSignName(String signName); public void setSignName(String signName);
@ -53,8 +51,7 @@ public interface GameType {
public GameGoal getGameGoal(); public GameGoal getGameGoal();
/** /**
* @param gameGoal * @param gameGoal the goal of the game to set
* the goal of the game to set
*/ */
public void setGameGoal(GameGoal gameGoal); public void setGameGoal(GameGoal gameGoal);
@ -64,8 +61,7 @@ public interface GameType {
public Boolean isPlayerVersusPlayer(); public Boolean isPlayerVersusPlayer();
/** /**
* @param playerVersusPlayer * @param playerVersusPlayer the playerVersusPlayer to set
* the playerVersusPlayer to set
*/ */
public void setPlayerVersusPlayer(Boolean playerVersusPlayer); public void setPlayerVersusPlayer(Boolean playerVersusPlayer);
@ -75,8 +71,7 @@ public interface GameType {
public Boolean isFriendlyFire(); public Boolean isFriendlyFire();
/** /**
* @param friendlyFire * @param friendlyFire the friendlyFire to set
* the friendlyFire to set
*/ */
public void setFriendlyFire(Boolean friendlyFire); public void setFriendlyFire(Boolean friendlyFire);
@ -86,8 +81,7 @@ public interface GameType {
public Boolean hasRewards(); public Boolean hasRewards();
/** /**
* @param rewards * @param rewards enable / disable rewards
* enable / disable rewards
*/ */
public void setRewards(Boolean rewards); public void setRewards(Boolean rewards);
@ -97,8 +91,7 @@ public interface GameType {
public Boolean getShowTime(); public Boolean getShowTime();
/** /**
* @param showTime * @param showTime set if players shall see how long they play
* set if players shall see how long they play
*/ */
public void setShowTime(Boolean showTime); public void setShowTime(Boolean showTime);
@ -108,8 +101,7 @@ public interface GameType {
public Boolean canBreakBlocks(); public Boolean canBreakBlocks();
/** /**
* @param breakBlocks * @param breakBlocks if blocks may be destroyed
* if blocks may be destroyed
*/ */
public void setBreakBlocks(Boolean breakBlocks); public void setBreakBlocks(Boolean breakBlocks);
@ -119,8 +111,7 @@ public interface GameType {
public Boolean canBreakPlacedBlocks(); public Boolean canBreakPlacedBlocks();
/** /**
* @param breakPlacedBlocks * @param breakPlacedBlocks if placed blocks may be destroyed
* if placed blocks may be destroyed
*/ */
public void setBreakPlacedBlocks(Boolean breakPlacedBlocks); public void setBreakPlacedBlocks(Boolean breakPlacedBlocks);
@ -130,8 +121,7 @@ public interface GameType {
public Boolean canPlaceBlocks(); public Boolean canPlaceBlocks();
/** /**
* @param placeBlocks * @param placeBlocks if blocks may be placed
* if blocks may be placed
*/ */
public void setPlaceBlocks(Boolean placeBlocks); public void setPlaceBlocks(Boolean placeBlocks);
@ -141,8 +131,7 @@ public interface GameType {
public GameMode getGameMode(); public GameMode getGameMode();
/** /**
* @param gameMode * @param gameMode the gameMode to set
* the gameMode to set
*/ */
public void setGameMode(GameMode gameMode); public void setGameMode(GameMode gameMode);
@ -152,8 +141,7 @@ public interface GameType {
public Boolean hasLives(); public Boolean hasLives();
/** /**
* @param lives * @param lives set if the gametype uses player lives
* set if the gametype uses player lives
*/ */
public void setLives(Boolean lives); public void setLives(Boolean lives);

View File

@ -47,6 +47,7 @@ public class GameTypeCache {
} }
/** /**
* @param name the name to check
* @return the game type which has the enum value name * @return the game type which has the enum value name
*/ */
public GameType getByName(String name) { public GameType getByName(String name) {
@ -60,6 +61,7 @@ public class GameTypeCache {
} }
/** /**
* @param sign the sign to check
* @return the game type which has the enum value sign text in the second line of the sign * @return the game type which has the enum value sign text in the second line of the sign
*/ */
public GameType getBySign(DSign sign) { public GameType getBySign(DSign sign) {
@ -82,16 +84,14 @@ public class GameTypeCache {
} }
/** /**
* @param type * @param type the game type to add
* the game type to add
*/ */
public void addGameType(GameType type) { public void addGameType(GameType type) {
types.add(type); types.add(type);
} }
/** /**
* @param game * @param type the game type to remove
* the game to remove
*/ */
public void removeGameType(GameType type) { public void removeGameType(GameType type) {
types.remove(type); types.remove(type);

View File

@ -81,8 +81,7 @@ public class DPortal extends GlobalProtection {
} }
/** /**
* @param block1 * @param block1 the block1 to set
* the block1 to set
*/ */
public void setBlock1(Block block1) { public void setBlock1(Block block1) {
this.block1 = block1; this.block1 = block1;
@ -96,8 +95,7 @@ public class DPortal extends GlobalProtection {
} }
/** /**
* @param block2 * @param block2 the block2 to set
* the block2 to set
*/ */
public void setBlock2(Block block2) { public void setBlock2(Block block2) {
this.block2 = block2; this.block2 = block2;
@ -111,8 +109,7 @@ public class DPortal extends GlobalProtection {
} }
/** /**
* @param active * @param active set the DPortal active
* set the DPortal active
*/ */
public void setActive(boolean active) { public void setActive(boolean active) {
this.active = active; this.active = active;
@ -120,6 +117,8 @@ public class DPortal extends GlobalProtection {
/** /**
* Create a new DPortal * Create a new DPortal
*
* @param player the creator
*/ */
public void create(DGlobalPlayer player) { public void create(DGlobalPlayer player) {
if (block1 == null || block2 == null) { if (block1 == null || block2 == null) {
@ -188,8 +187,7 @@ public class DPortal extends GlobalProtection {
} }
/** /**
* @param player * @param player the player to teleport into his dungeon
* the player to teleport into his dungeon
*/ */
public void teleport(Player player) { public void teleport(Player player) {
DGroup dGroup = DGroup.getByPlayer(player); DGroup dGroup = DGroup.getByPlayer(player);
@ -330,16 +328,16 @@ public class DPortal extends GlobalProtection {
/* Statics */ /* Statics */
/** /**
* @param location * @param location a location covered by the returned portal
* a location covered by the returned portal * @return the portal at the location, null if there is none
*/ */
public static DPortal getByLocation(Location location) { public static DPortal getByLocation(Location location) {
return getByBlock(location.getBlock()); return getByBlock(location.getBlock());
} }
/** /**
* @param block * @param block a block covered by the returned portal
* a block covered by the returned portal * @return the portal that the block belongs to, null if it belongs to none
*/ */
public static DPortal getByBlock(Block block) { public static DPortal getByBlock(Block block) {
for (GlobalProtection protection : DungeonsXL.getInstance().getGlobalProtections().getProtections(DPortal.class)) { for (GlobalProtection protection : DungeonsXL.getInstance().getGlobalProtections().getProtections(DPortal.class)) {

View File

@ -50,16 +50,14 @@ public class GameSign extends JoinSign {
} }
/** /**
* @return * @return the attached game
* the attached game
*/ */
public Game getGame() { public Game getGame() {
return game; return game;
} }
/** /**
* @param game * @param game the game to set
* the game to set
*/ */
public void setGame(Game game) { public void setGame(Game game) {
this.game = game; this.game = game;
@ -172,8 +170,8 @@ public class GameSign extends JoinSign {
/* Statics */ /* Statics */
/** /**
* @param block * @param block a block which is protected by the returned GameSign
* a block which is protected by the returned GameSign * @return the game sign the block belongs to, null if it belongs to none
*/ */
public static GameSign getByBlock(Block block) { public static GameSign getByBlock(Block block) {
if (!Category.SIGNS.containsBlock(block)) { if (!Category.SIGNS.containsBlock(block)) {
@ -192,8 +190,8 @@ public class GameSign extends JoinSign {
} }
/** /**
* @param game * @param game the game to check
* the game to check * @return the game that this sign creates
*/ */
public static GameSign getByGame(Game game) { public static GameSign getByGame(Game game) {
for (GlobalProtection protection : DungeonsXL.getInstance().getGlobalProtections().getProtections(GameSign.class)) { for (GlobalProtection protection : DungeonsXL.getInstance().getGlobalProtections().getProtections(GameSign.class)) {

View File

@ -55,8 +55,7 @@ public abstract class GlobalProtection {
} }
/** /**
* @param world * @param world the world to set
* the world to set
*/ */
public void setWorld(World world) { public void setWorld(World world) {
this.world = world; this.world = world;
@ -85,8 +84,7 @@ public abstract class GlobalProtection {
} }
/** /**
* @param file * @param file the file to save the protection to
* the file to save the protection to
*/ */
public void save(File file) { public void save(File file) {
save(YamlConfiguration.loadConfiguration(file)); save(YamlConfiguration.loadConfiguration(file));
@ -107,8 +105,7 @@ public abstract class GlobalProtection {
/* Abstracts */ /* Abstracts */
/** /**
* @param config * @param config the config to save the protection to
* the config to save the protection to
*/ */
public abstract void save(FileConfiguration config); public abstract void save(FileConfiguration config);

View File

@ -45,6 +45,7 @@ public class GlobalProtectionCache {
} }
/** /**
* @param location the location to check
* @return the protection which covers this location * @return the protection which covers this location
*/ */
public GlobalProtection getByLocation(Location location) { public GlobalProtection getByLocation(Location location) {
@ -52,6 +53,7 @@ public class GlobalProtectionCache {
} }
/** /**
* @param block the block to check
* @return the protection which covers this block * @return the protection which covers this block
*/ */
public GlobalProtection getByBlock(Block block) { public GlobalProtection getByBlock(Block block) {
@ -72,8 +74,8 @@ public class GlobalProtectionCache {
} }
/** /**
* @param type * @param type All protections which are an instance of it will be returned.
* All protections which are an instance of it will be returned. * @return the protections of the type
*/ */
public Set<GlobalProtection> getProtections(Class<? extends GlobalProtection> type) { public Set<GlobalProtection> getProtections(Class<? extends GlobalProtection> type) {
Set<GlobalProtection> protectionsOfType = new HashSet<>(); Set<GlobalProtection> protectionsOfType = new HashSet<>();
@ -86,16 +88,14 @@ public class GlobalProtectionCache {
} }
/** /**
* @param protection * @param protection the protection type to add
* the protection type to add
*/ */
public void addProtection(GlobalProtection protection) { public void addProtection(GlobalProtection protection) {
protections.add(protection); protections.add(protection);
} }
/** /**
* @param protection * @param protection the protection to remove
* the protection to remove
*/ */
public void removeProtection(GlobalProtection protection) { public void removeProtection(GlobalProtection protection) {
protections.remove(protection); protections.remove(protection);
@ -109,16 +109,14 @@ public class GlobalProtectionCache {
} }
/** /**
* @param file * @param file the file to save all protections to
* the file to save all protections to
*/ */
public void saveAll(File file) { public void saveAll(File file) {
saveAll(YamlConfiguration.loadConfiguration(file)); saveAll(YamlConfiguration.loadConfiguration(file));
} }
/** /**
* @param config * @param config the config to save all protections to
* the config to save all protections to
*/ */
public void saveAll(FileConfiguration config) { public void saveAll(FileConfiguration config) {
config.set("protections", null); config.set("protections", null);
@ -130,10 +128,8 @@ public class GlobalProtectionCache {
} }
/** /**
* @param type * @param type Each type is stored seperately.
* Each type is stored seperately. * @param world Each world has its own IDs.
* @param world
* Each world has its own IDs.
* @return an unused ID number for a new protection * @return an unused ID number for a new protection
*/ */
public int generateId(Class<? extends GlobalProtection> type, World world) { public int generateId(Class<? extends GlobalProtection> type, World world) {
@ -147,8 +143,8 @@ public class GlobalProtectionCache {
} }
/** /**
* @param block * @param block the block to check
* the block to check * @return if the block is protected by a GlobalProtection
*/ */
public boolean isProtectedBlock(Block block) { public boolean isProtectedBlock(Block block) {
for (GlobalProtection protection : protections) { for (GlobalProtection protection : protections) {

View File

@ -51,16 +51,14 @@ public class GroupSign extends JoinSign {
} }
/** /**
* @return * @return the attached group
* the attached group
*/ */
public DGroup getGroup() { public DGroup getGroup() {
return group; return group;
} }
/** /**
* @param group * @param group the group to set
* the group to set
*/ */
public void setGroup(DGroup group) { public void setGroup(DGroup group) {
this.group = group; this.group = group;
@ -162,8 +160,8 @@ public class GroupSign extends JoinSign {
/* Statics */ /* Statics */
/** /**
* @param block * @param block a block which is protected by the returned GroupSign
* a block which is protected by the returned GroupSign * @return the group sign the block belongs to, null if it belongs to none
*/ */
public static GroupSign getByBlock(Block block) { public static GroupSign getByBlock(Block block) {
if (!Category.SIGNS.containsBlock(block)) { if (!Category.SIGNS.containsBlock(block)) {

View File

@ -57,32 +57,28 @@ public class JoinSign extends GlobalProtection {
} }
/** /**
* @return * @return the dungeon
* the dungeon
*/ */
public Dungeon getDungeon() { public Dungeon getDungeon() {
return dungeon; return dungeon;
} }
/** /**
* @param dungeon * @param dungeon the dungeon to set
* the dungeon to set
*/ */
public void setDungeon(Dungeon dungeon) { public void setDungeon(Dungeon dungeon) {
this.dungeon = dungeon; this.dungeon = dungeon;
} }
/** /**
* @return * @return the maximum element count per sign
* the maximum element count per sign
*/ */
public int getMaxElements() { public int getMaxElements() {
return maxElements; return maxElements;
} }
/** /**
* @param maxElements * @param maxElements the maximum element count per sign
* the maximum element count per sign
*/ */
public void setMaxElements(int maxElements) { public void setMaxElements(int maxElements) {
this.maxElements = maxElements; this.maxElements = maxElements;

View File

@ -99,8 +99,8 @@ public class LeaveSign extends GlobalProtection {
/* Statics */ /* Statics */
/** /**
* @param block * @param block a block which is protected by the returned LeaveSign
* a block which is protected by the returned LeaveSign * @return the leave sign the block belongs to, null if it belongs to none
*/ */
public static LeaveSign getByBlock(Block block) { public static LeaveSign getByBlock(Block block) {
for (GlobalProtection protection : DungeonsXL.getInstance().getGlobalProtections().getProtections(LeaveSign.class)) { for (GlobalProtection protection : DungeonsXL.getInstance().getGlobalProtections().getProtections(LeaveSign.class)) {

View File

@ -55,16 +55,14 @@ public class CitizensMobProvider implements ExternalMobProvider, Listener {
} }
/** /**
* @param npc * @param npc the NPC to add
* the NPC to add
*/ */
public void addSpawnedNPC(NPC npc) { public void addSpawnedNPC(NPC npc) {
spawnedNPCs.add(npc); spawnedNPCs.add(npc);
} }
/** /**
* @param npc * @param npc the NPC to remove
* the NPC to remove
*/ */
public void removeSpawnedNPC(NPC npc) { public void removeSpawnedNPC(NPC npc) {
spawnedNPCs.remove(npc); spawnedNPCs.remove(npc);

View File

@ -70,18 +70,15 @@ public class DMobType extends ExMob {
private String ocelotType = null; private String ocelotType = null;
/** /**
* @param file * @param file the script file
* the script file
*/ */
public DMobType(File file) { public DMobType(File file) {
this(file.getName().substring(0, file.getName().length() - 4), YamlConfiguration.loadConfiguration(file)); this(file.getName().substring(0, file.getName().length() - 4), YamlConfiguration.loadConfiguration(file));
} }
/** /**
* @param name * @param name the name of the DMobType
* the name of the DMobType * @param config the config that stores the information
* @param config
* the config that stores the information
*/ */
public DMobType(String name, FileConfiguration config) { public DMobType(String name, FileConfiguration config) {
this.name = name; this.name = name;
@ -190,10 +187,8 @@ public class DMobType extends ExMob {
} }
/** /**
* @param name * @param name the name of the DMobType
* the name of the DMobType * @param type the EntityType of the mob
* @param type
* the EntityType of the mob
*/ */
public DMobType(String name, EntityType type) { public DMobType(String name, EntityType type) {
this.name = name; this.name = name;
@ -209,8 +204,7 @@ public class DMobType extends ExMob {
} }
/** /**
* @param name * @param name the name to set
* the name to set
*/ */
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
@ -224,8 +218,7 @@ public class DMobType extends ExMob {
} }
/** /**
* @param type * @param type the type to set
* the type to set
*/ */
public void setType(EntityType type) { public void setType(EntityType type) {
this.type = type; this.type = type;
@ -239,8 +232,7 @@ public class DMobType extends ExMob {
} }
/** /**
* @param maxHealth * @param maxHealth the maxHealth to set
* the maxHealth to set
*/ */
public void setMaxHealth(int maxHealth) { public void setMaxHealth(int maxHealth) {
this.maxHealth = maxHealth; this.maxHealth = maxHealth;
@ -254,8 +246,7 @@ public class DMobType extends ExMob {
} }
/** /**
* @param itemHand * @param itemHand the itemHand to set
* the itemHand to set
*/ */
public void setitemHand(ItemStack itemHand) { public void setitemHand(ItemStack itemHand) {
this.itemHand = itemHand; this.itemHand = itemHand;
@ -269,8 +260,7 @@ public class DMobType extends ExMob {
} }
/** /**
* @param itemHelmet * @param itemHelmet the itemHelmet to set
* the itemHelmet to set
*/ */
public void setitemHelmet(ItemStack itemHelmet) { public void setitemHelmet(ItemStack itemHelmet) {
this.itemHelmet = itemHelmet; this.itemHelmet = itemHelmet;
@ -284,8 +274,7 @@ public class DMobType extends ExMob {
} }
/** /**
* @param itemChestplate * @param itemChestplate the itemChestplate to set
* the itemChestplate to set
*/ */
public void setitemChestplate(ItemStack itemChestplate) { public void setitemChestplate(ItemStack itemChestplate) {
this.itemChestplate = itemChestplate; this.itemChestplate = itemChestplate;
@ -299,8 +288,7 @@ public class DMobType extends ExMob {
} }
/** /**
* @param itemLeggings * @param itemLeggings the itemLeggings to set
* the itemLeggings to set
*/ */
public void setitemLeggings(ItemStack itemLeggings) { public void setitemLeggings(ItemStack itemLeggings) {
this.itemLeggings = itemLeggings; this.itemLeggings = itemLeggings;
@ -314,8 +302,7 @@ public class DMobType extends ExMob {
} }
/** /**
* @param itemBoots * @param itemBoots the itemBoots to set
* the itemBoots to set
*/ */
public void setitemBoots(ItemStack itemBoots) { public void setitemBoots(ItemStack itemBoots) {
this.itemBoots = itemBoots; this.itemBoots = itemBoots;
@ -329,8 +316,7 @@ public class DMobType extends ExMob {
} }
/** /**
* @param drops * @param drops the drops to set
* the drops to set
*/ */
public void setDrops(Map<ItemStack, Integer> drops) { public void setDrops(Map<ItemStack, Integer> drops) {
this.drops = drops; this.drops = drops;
@ -344,8 +330,7 @@ public class DMobType extends ExMob {
} }
/** /**
* @param witherSkeleton * @param witherSkeleton set if the skeleton is a wither skeleton
* set if the skeleton is a wither skeleton
*/ */
public void setWitherSkeleton(boolean witherSkeleton) { public void setWitherSkeleton(boolean witherSkeleton) {
this.witherSkeleton = witherSkeleton; this.witherSkeleton = witherSkeleton;
@ -359,8 +344,7 @@ public class DMobType extends ExMob {
} }
/** /**
* @param ocelotType * @param ocelotType the ocelotType to set
* the ocelotType to set
*/ */
public void setOcelotType(String ocelotType) { public void setOcelotType(String ocelotType) {
this.ocelotType = ocelotType; this.ocelotType = ocelotType;

View File

@ -125,10 +125,8 @@ public class DNPCRegistry implements NPCRegistry {
/** /**
* Clones an NPC without spamming the config. * Clones an NPC without spamming the config.
* *
* @param npc * @param npc the NPC to clone
* the NPC to clone * @return a clone of the NPC
* @return
* a clone of the NPC
*/ */
public NPC createTransientClone(AbstractNPC npc) { public NPC createTransientClone(AbstractNPC npc) {
NPC copy = createNPC(npc.getTrait(MobType.class).getType(), npc.getFullName()); NPC copy = createNPC(npc.getTrait(MobType.class).getType(), npc.getFullName());

View File

@ -36,25 +36,18 @@ public interface ExternalMobProvider {
public String getRawCommand(); public String getRawCommand();
/** /**
* @param mob * @param mob the mob identifier
* the mob identifier * @param world the game world
* @param world * @param x the x coordinate
* the game world * @param y the y coordinate
* @param x * @param z the z coordinate
* the x coordinate
* @param y
* the y coordinate
* @param z
* the z coordinate
* @return the command with replaced variables * @return the command with replaced variables
*/ */
public String getCommand(String mob, String world, double x, double y, double z); public String getCommand(String mob, String world, double x, double y, double z);
/** /**
* @param mob * @param mob the mob identifier
* the mob identifier * @param location the location where the mob will be spawned
* @param location
* the location where the mob will be spawned
*/ */
public void summon(String mob, Location location); public void summon(String mob, Location location);

View File

@ -53,8 +53,8 @@ public class ExternalMobProviderCache {
} }
/** /**
* @param identifier * @param identifier the identifier to check
* the identifier for ExternalMob signs * @return the ExternalMobProvider represented by the identifier
*/ */
public ExternalMobProvider getByIdentifier(String identifier) { public ExternalMobProvider getByIdentifier(String identifier) {
for (ExternalMobProvider provider : providers) { for (ExternalMobProvider provider : providers) {
@ -87,16 +87,14 @@ public class ExternalMobProviderCache {
} }
/** /**
* @param provider * @param provider the provider to register
* the provider to register
*/ */
public void addExternalMobProvider(ExternalMobProvider provider) { public void addExternalMobProvider(ExternalMobProvider provider) {
providers.add(provider); providers.add(provider);
} }
/** /**
* @param provider * @param provider the provider to unregister
* the provider to unregister
*/ */
public void removeExternalMobProvider(ExternalMobProvider provider) { public void removeExternalMobProvider(ExternalMobProvider provider) {
providers.remove(provider); providers.remove(provider);

View File

@ -77,16 +77,14 @@ public class DClass {
} }
/** /**
* @param itemStack * @param itemStack the ItemStack to add
* the ItemStack to add
*/ */
public void addItem(ItemStack itemStack) { public void addItem(ItemStack itemStack) {
items.add(itemStack); items.add(itemStack);
} }
/** /**
* @param itemStack * @param itemStack the ItemStack to remove
* the ItemStack to remove
*/ */
public void removeItem(ItemStack itemStack) { public void removeItem(ItemStack itemStack) {
items.remove(itemStack); items.remove(itemStack);
@ -100,8 +98,7 @@ public class DClass {
} }
/** /**
* @param dog * @param dog set if the class has a dog
* set if the class has a dog
*/ */
public void setDog(boolean dog) { public void setDog(boolean dog) {
this.dog = dog; this.dog = dog;

View File

@ -39,6 +39,7 @@ public class DClassCache {
} }
/** /**
* @param name the name to check
* @return the dClass that has the name * @return the dClass that has the name
*/ */
public DClass getByName(String name) { public DClass getByName(String name) {
@ -59,16 +60,14 @@ public class DClassCache {
} }
/** /**
* @param dClass * @param dClass the DClass to add
* the DClass to add
*/ */
public void addDClass(DClass dClass) { public void addDClass(DClass dClass) {
dClasses.add(dClass); dClasses.add(dClass);
} }
/** /**
* @param dClass * @param dClass the DClass to remove
* the DClass to remove
*/ */
public void removeDClass(DClass dClass) { public void removeDClass(DClass dClass) {
dClasses.remove(dClass); dClasses.remove(dClass);

View File

@ -73,10 +73,8 @@ public class DEditPlayer extends DInstancePlayer {
} }
/** /**
* @param player * @param player the represented Player
* the represented Player * @param editWorld the player's EditWorld
* @param editWorld
* the player's EditWorld
*/ */
public static void create(Player player, DEditWorld editWorld) { public static void create(Player player, DEditWorld editWorld) {
new CreateDInstancePlayerTask(player, editWorld).runTaskTimer(DungeonsXL.getInstance(), 0L, 5L); new CreateDInstancePlayerTask(player, editWorld).runTaskTimer(DungeonsXL.getInstance(), 0L, 5L);
@ -91,8 +89,7 @@ public class DEditPlayer extends DInstancePlayer {
} }
/** /**
* @param linesCopy * @param linesCopy the linesCopy to set
* the linesCopy to set
*/ */
public void setLinesCopy(String[] linesCopy) { public void setLinesCopy(String[] linesCopy) {
this.linesCopy = linesCopy; this.linesCopy = linesCopy;

View File

@ -112,23 +112,17 @@ public class DGamePlayer extends DInstancePlayer {
} }
/** /**
* @param player * @param player the represented Player
* the represented Player * @param gameWorld the player's GameWorld
* @param gameWorld
* the player's GameWorld
*/ */
public static void create(Player player, DGameWorld gameWorld) { public static void create(Player player, DGameWorld gameWorld) {
create(player, gameWorld, null); create(player, gameWorld, null);
} }
/** /**
* @param player * @param player the represented Player
* the represented Player * @param gameWorld the player's GameWorld
* @param gameWorld * @param ready Any GameType if the player will be ready from the beginning null if the player will not be ready from the beginning
* the player's GameWorld
* @param ready
* Any GameType if the player will be ready from the beginning
* null if the player will not be ready from the beginning
*/ */
public static void create(Player player, DGameWorld gameWorld, GameType ready) { public static void create(Player player, DGameWorld gameWorld, GameType ready) {
new CreateDInstancePlayerTask(player, gameWorld, ready).runTaskTimer(DungeonsXL.getInstance(), 0L, 5L); new CreateDInstancePlayerTask(player, gameWorld, ready).runTaskTimer(DungeonsXL.getInstance(), 0L, 5L);
@ -155,8 +149,7 @@ public class DGamePlayer extends DInstancePlayer {
} }
/** /**
* @param player * @param player the player to set
* the player to set
*/ */
public void setPlayer(Player player) { public void setPlayer(Player player) {
this.player = player; this.player = player;
@ -196,8 +189,7 @@ public class DGamePlayer extends DInstancePlayer {
} }
/** /**
* @param ready * @param ready If the player is ready to play the dungeon
* If the player is ready to play the dungeon
*/ */
public void setReady(boolean ready) { public void setReady(boolean ready) {
this.ready = ready; this.ready = ready;
@ -211,8 +203,7 @@ public class DGamePlayer extends DInstancePlayer {
} }
/** /**
* @param finished * @param finished the finished to set
* the finished to set
*/ */
public void setFinished(boolean finished) { public void setFinished(boolean finished) {
this.finished = finished; this.finished = finished;
@ -226,8 +217,7 @@ public class DGamePlayer extends DInstancePlayer {
} }
/** /**
* @param dClass * @param className the name of the class to set
* the dClass to set
*/ */
public void setDClass(String className) { public void setDClass(String className) {
Game game = Game.getByWorld(getPlayer().getWorld()); Game game = Game.getByWorld(getPlayer().getWorld());
@ -303,8 +293,7 @@ public class DGamePlayer extends DInstancePlayer {
} }
/** /**
* @param checkpoint * @param checkpoint the checkpoint to set
* the checkpoint to set
*/ */
public void setCheckpoint(Location checkpoint) { public void setCheckpoint(Location checkpoint) {
this.checkpoint = checkpoint; this.checkpoint = checkpoint;
@ -318,8 +307,7 @@ public class DGamePlayer extends DInstancePlayer {
} }
/** /**
* @param wolf * @param wolf the wolf to set
* the wolf to set
*/ */
public void setWolf(Wolf wolf) { public void setWolf(Wolf wolf) {
this.wolf = wolf; this.wolf = wolf;
@ -333,8 +321,7 @@ public class DGamePlayer extends DInstancePlayer {
} }
/** /**
* @param wolfRespawnTime * @param wolfRespawnTime the wolfRespawnTime to set
* the wolfRespawnTime to set
*/ */
public void setWolfRespawnTime(int wolfRespawnTime) { public void setWolfRespawnTime(int wolfRespawnTime) {
this.wolfRespawnTime = wolfRespawnTime; this.wolfRespawnTime = wolfRespawnTime;
@ -348,8 +335,7 @@ public class DGamePlayer extends DInstancePlayer {
} }
/** /**
* @param offlineTime * @param offlineTime the offlineTime to set
* the offlineTime to set
*/ */
public void setOfflineTime(long offlineTime) { public void setOfflineTime(long offlineTime) {
this.offlineTime = offlineTime; this.offlineTime = offlineTime;
@ -363,8 +349,7 @@ public class DGamePlayer extends DInstancePlayer {
} }
/** /**
* @param initialLives * @param initialLives the initialLives to set
* the initialLives to set
*/ */
public void setInitialLives(int initialLives) { public void setInitialLives(int initialLives) {
this.initialLives = initialLives; this.initialLives = initialLives;
@ -378,8 +363,7 @@ public class DGamePlayer extends DInstancePlayer {
} }
/** /**
* @param lives * @param lives the lives to set
* the lives to set
*/ */
public void setLives(int lives) { public void setLives(int lives) {
this.lives = lives; this.lives = lives;
@ -400,8 +384,7 @@ public class DGamePlayer extends DInstancePlayer {
} }
/** /**
* @param dGroup * @param dGroup the group whose flag is stolen
* the group whose flag is stolen
*/ */
public void setRobbedGroup(DGroup dGroup) { public void setRobbedGroup(DGroup dGroup) {
if (dGroup != null) { if (dGroup != null) {
@ -413,16 +396,14 @@ public class DGamePlayer extends DInstancePlayer {
} }
/** /**
* @return * @return the player's group tag
* the player's group tag
*/ */
public DGroupTag getDGroupTag() { public DGroupTag getDGroupTag() {
return groupTag; return groupTag;
} }
/** /**
* @return * Creates a new group tag for the player.
* the player's group tag
*/ */
public void initDGroupTag() { public void initDGroupTag() {
groupTag = new DGroupTag(this); groupTag = new DGroupTag(this);
@ -470,8 +451,7 @@ public class DGamePlayer extends DInstancePlayer {
} }
/** /**
* @param message * @param message if messages should be sent
* if messages should be sent
*/ */
public void leave(boolean message) { public void leave(boolean message) {
Game game = Game.getByWorld(getWorld()); Game game = Game.getByWorld(getWorld());
@ -761,8 +741,7 @@ public class DGamePlayer extends DInstancePlayer {
/** /**
* The DGamePlayer finishs the current floor. * The DGamePlayer finishs the current floor.
* *
* @param specifiedFloor * @param specifiedFloor the name of the next floor
* the name of the next floor
*/ */
public void finishFloor(DResourceWorld specifiedFloor) { public void finishFloor(DResourceWorld specifiedFloor) {
if (!dGroup.getDungeon().isMultiFloor()) { if (!dGroup.getDungeon().isMultiFloor()) {
@ -803,8 +782,7 @@ public class DGamePlayer extends DInstancePlayer {
} }
/** /**
* @param message * @param message if messages should be sent
* if messages should be sent
*/ */
public void finish(boolean message) { public void finish(boolean message) {
if (message) { if (message) {

View File

@ -116,6 +116,8 @@ public class DGlobalPlayer implements PlayerWrapper {
/** /**
* Load / reload a new instance of DPlayerData * Load / reload a new instance of DPlayerData
*
* @param file the file to load from
*/ */
public void loadPlayerData(File file) { public void loadPlayerData(File file) {
data = new DPlayerData(file); data = new DPlayerData(file);
@ -129,8 +131,7 @@ public class DGlobalPlayer implements PlayerWrapper {
} }
/** /**
* @param breakMode * @param breakMode sets if the player is in break mode
* sets if the player is in break mode
*/ */
public void setInBreakMode(boolean breakMode) { public void setInBreakMode(boolean breakMode) {
this.breakMode = breakMode; this.breakMode = breakMode;
@ -147,8 +148,7 @@ public class DGlobalPlayer implements PlayerWrapper {
} }
/** /**
* @param groupChat * @param groupChat set if the player is in group chat
* set if the player is in group chat
*/ */
public void setInGroupChat(boolean groupChat) { public void setInGroupChat(boolean groupChat) {
this.groupChat = groupChat; this.groupChat = groupChat;
@ -165,8 +165,7 @@ public class DGlobalPlayer implements PlayerWrapper {
} }
/** /**
* @param chatSpyMode * @param chatSpyMode sets if the player is in chat spy mode
* sets if the player is in chat spy mode
*/ */
public void setInChatSpyMode(boolean chatSpyMode) { public void setInChatSpyMode(boolean chatSpyMode) {
this.chatSpyMode = chatSpyMode; this.chatSpyMode = chatSpyMode;
@ -187,8 +186,7 @@ public class DGlobalPlayer implements PlayerWrapper {
} }
/** /**
* @param dPortal * @param dPortal the portal to create
* the portal to create
*/ */
public void setCreatingPortal(DPortal dPortal) { public void setCreatingPortal(DPortal dPortal) {
creatingPortal = dPortal; creatingPortal = dPortal;
@ -202,8 +200,7 @@ public class DGlobalPlayer implements PlayerWrapper {
} }
/** /**
* @param item * @param item the cached item to set
* the cached item to set
*/ */
public void setCachedItem(ItemStack item) { public void setCachedItem(ItemStack item) {
cachedItem = item; cachedItem = item;
@ -217,8 +214,7 @@ public class DGlobalPlayer implements PlayerWrapper {
} }
/** /**
* @param enabled * @param enabled set if the players receives announcer messages
* set if the players receives announcer messages
*/ */
public void setAnnouncerEnabled(boolean enabled) { public void setAnnouncerEnabled(boolean enabled) {
announcerEnabled = enabled; announcerEnabled = enabled;
@ -232,8 +228,7 @@ public class DGlobalPlayer implements PlayerWrapper {
} }
/** /**
* @param respawnInventory * @param respawnInventory the respawnInventory to set
* the respawnInventory to set
*/ */
public void setRespawnInventory(ItemStack[] respawnInventory) { public void setRespawnInventory(ItemStack[] respawnInventory) {
this.respawnInventory = respawnInventory; this.respawnInventory = respawnInventory;
@ -261,16 +256,14 @@ public class DGlobalPlayer implements PlayerWrapper {
} }
/** /**
* @param respawnArmor * @param respawnArmor the respawnArmor to set
* the respawnArmor to set
*/ */
public void setRespawnArmor(ItemStack[] respawnArmor) { public void setRespawnArmor(ItemStack[] respawnArmor) {
this.respawnArmor = respawnArmor; this.respawnArmor = respawnArmor;
} }
/** /**
* @param permission * @param permission the permission to check
* the permission to check
* @return if the player has the permission * @return if the player has the permission
*/ */
public boolean hasPermission(DPermission permission) { public boolean hasPermission(DPermission permission) {
@ -292,16 +285,14 @@ public class DGlobalPlayer implements PlayerWrapper {
} }
/** /**
* @param rewardItems * @param rewardItems the reward items to set
* the reward items to set
*/ */
public void setRewardItems(List<ItemStack> rewardItems) { public void setRewardItems(List<ItemStack> rewardItems) {
this.rewardItems = rewardItems; this.rewardItems = rewardItems;
} }
/** /**
* @param permission * @param permission the permission to check
* the permission to check
* @return if the player has the permission * @return if the player has the permission
*/ */
public boolean hasPermission(String permission) { public boolean hasPermission(String permission) {
@ -312,8 +303,7 @@ public class DGlobalPlayer implements PlayerWrapper {
/** /**
* Sends a message to the player * Sends a message to the player
* *
* @param message * @param message the message to send
* the message to send
*/ */
public void sendMessage(String message) { public void sendMessage(String message) {
MessageUtil.sendMessage(player, message); MessageUtil.sendMessage(player, message);
@ -321,6 +311,8 @@ public class DGlobalPlayer implements PlayerWrapper {
/** /**
* Respawns the player at his old position before he was in a dungeon * Respawns the player at his old position before he was in a dungeon
*
* @param keepInventory if the inventory shall be reset
*/ */
public void reset(boolean keepInventory) { public void reset(boolean keepInventory) {
final Location tpLoc = data.getOldLocation().getWorld() != null ? data.getOldLocation() : Bukkit.getWorlds().get(0).getSpawnLocation(); final Location tpLoc = data.getOldLocation().getWorld() != null ? data.getOldLocation() : Bukkit.getWorlds().get(0).getSpawnLocation();

View File

@ -185,16 +185,14 @@ public class DGroup {
} }
/** /**
* @param name * @param name the name to set
* the name to set
*/ */
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
/** /**
* @param name * @param color the color to fetch the name from
* the name to set
*/ */
public void setName(DColor color) { public void setName(DColor color) {
name = color.toString().replace("_", " "); name = color.toString().replace("_", " ");
@ -208,8 +206,7 @@ public class DGroup {
} }
/** /**
* @param captain * @param captain the captain to set
* the captain to set
*/ */
public void setCaptain(Player captain) { public void setCaptain(Player captain) {
this.captain = captain; this.captain = captain;
@ -223,7 +220,7 @@ public class DGroup {
} }
/** /**
* @return the players as a Set<DGlobalPlayer> * @return the players as a Set&lt;DGlobalPlayer&gt;
*/ */
public Set<DGlobalPlayer> getDGlobalPlayers() { public Set<DGlobalPlayer> getDGlobalPlayers() {
Set<DGlobalPlayer> players = new HashSet<>(); Set<DGlobalPlayer> players = new HashSet<>();
@ -234,7 +231,7 @@ public class DGroup {
} }
/** /**
* @return the players as a Set<DGamePlayer> * @return the players as a Set&lt;DGamePlayer&gt;
*/ */
public Set<DGamePlayer> getDGamePlayers() { public Set<DGamePlayer> getDGamePlayers() {
Set<DGamePlayer> players = new HashSet<>(); Set<DGamePlayer> players = new HashSet<>();
@ -250,18 +247,15 @@ public class DGroup {
/** /**
* Sends messages by default. * Sends messages by default.
* *
* @param player * @param player the player to add
* the player to add
*/ */
public void addPlayer(Player player) { public void addPlayer(Player player) {
addPlayer(player, true); addPlayer(player, true);
} }
/** /**
* @param player * @param player the player to add
* the player to add * @param message if messages should be sent
* @param message
* if messages should be sent
*/ */
public void addPlayer(Player player, boolean message) { public void addPlayer(Player player, boolean message) {
DPlayerJoinDGroupEvent event = new DPlayerJoinDGroupEvent(DGamePlayer.getByPlayer(player), false, this); DPlayerJoinDGroupEvent event = new DPlayerJoinDGroupEvent(DGamePlayer.getByPlayer(player), false, this);
@ -280,18 +274,15 @@ public class DGroup {
/** /**
* Sends messages by default. * Sends messages by default.
* *
* @param player * @param player the player to remove
* the player to remove
*/ */
public void removePlayer(Player player) { public void removePlayer(Player player) {
removePlayer(player, true); removePlayer(player, true);
} }
/** /**
* @param player * @param player the player to remove
* the player to remove * @param message if messages should be sent
* @param message
* if messages should be sent
*/ */
public void removePlayer(Player player, boolean message) { public void removePlayer(Player player, boolean message) {
players.remove(player.getUniqueId()); players.remove(player.getUniqueId());
@ -319,8 +310,8 @@ public class DGroup {
} }
/** /**
* @param player * @param player the player to add
* the player to add * @param silent if messages shall be sent
*/ */
public void addInvitedPlayer(Player player, boolean silent) { public void addInvitedPlayer(Player player, boolean silent) {
if (player == null) { if (player == null) {
@ -348,8 +339,8 @@ public class DGroup {
} }
/** /**
* @param player * @param player the player to remove
* the player to remove * @param silent if messages shall be sent
*/ */
public void removeInvitedPlayer(Player player, boolean silent) { public void removeInvitedPlayer(Player player, boolean silent) {
if (player == null) { if (player == null) {
@ -398,8 +389,7 @@ public class DGroup {
} }
/** /**
* @param gameWorld * @param gameWorld the gameWorld to set
* the gameWorld to set
*/ */
public void setGameWorld(DGameWorld gameWorld) { public void setGameWorld(DGameWorld gameWorld) {
this.gameWorld = gameWorld; this.gameWorld = gameWorld;
@ -415,8 +405,7 @@ public class DGroup {
/** /**
* Sets up all dungeon-related fields. * Sets up all dungeon-related fields.
* *
* @param dungeon * @param dungeon the dungeon to set
* the dungeon to set
*/ */
public void setDungeon(Dungeon dungeon) { public void setDungeon(Dungeon dungeon) {
this.dungeon = dungeon; this.dungeon = dungeon;
@ -428,8 +417,8 @@ public class DGroup {
/** /**
* Sets up all dungeon-related fields. * Sets up all dungeon-related fields.
* *
* @param name * @param name the name of the dungeon
* the name of the dungeon * @return if the action was successful
*/ */
public boolean setDungeon(String name) { public boolean setDungeon(String name) {
dungeon = plugin.getDungeons().getByName(name); dungeon = plugin.getDungeons().getByName(name);
@ -472,18 +461,15 @@ public class DGroup {
} }
/** /**
* @param unplayedFloor * @param unplayedFloor the unplayed floor to add
* the unplayed floor to add
*/ */
public void addUnplayedFloor(DResourceWorld unplayedFloor) { public void addUnplayedFloor(DResourceWorld unplayedFloor) {
unplayedFloors.add(unplayedFloor); unplayedFloors.add(unplayedFloor);
} }
/** /**
* @param unplayedFloor * @param unplayedFloor the unplayed floor to remove
* the unplayed floor to remove * @param force remove the floor even if removeWhenPlayed is disabled
* @param force
* remove the floor even if removeWhenPlayed is disabled
*/ */
public void removeUnplayedFloor(DResourceWorld unplayedFloor, boolean force) { public void removeUnplayedFloor(DResourceWorld unplayedFloor, boolean force) {
if (getDungeon().getConfig().getRemoveWhenPlayed() || force) { if (getDungeon().getConfig().getRemoveWhenPlayed() || force) {
@ -499,8 +485,7 @@ public class DGroup {
} }
/** /**
* @param playing * @param playing set if the group is playing
* set if the group is playing
*/ */
public void setPlaying(boolean playing) { public void setPlaying(boolean playing) {
this.playing = playing; this.playing = playing;
@ -514,8 +499,7 @@ public class DGroup {
} }
/** /**
* @param floorCount * @param floorCount the floorCount to set
* the floorCount to set
*/ */
public void setFloorCount(int floorCount) { public void setFloorCount(int floorCount) {
this.floorCount = floorCount; this.floorCount = floorCount;
@ -529,8 +513,7 @@ public class DGroup {
} }
/** /**
* @param reward * @param reward the rewards to add
* the rewards to add
*/ */
public void addReward(Reward reward) { public void addReward(Reward reward) {
RewardAdditionEvent event = new RewardAdditionEvent(reward, this); RewardAdditionEvent event = new RewardAdditionEvent(reward, this);
@ -544,8 +527,7 @@ public class DGroup {
} }
/** /**
* @param reward * @param reward the rewards to remove
* the rewards to remove
*/ */
public void removeReward(Reward reward) { public void removeReward(Reward reward) {
rewards.remove(reward); rewards.remove(reward);
@ -559,8 +541,7 @@ public class DGroup {
} }
/** /**
* @param task * @param task the task to set
* the task to set
*/ */
public void setTimeIsRunningTask(BukkitTask task) { public void setTimeIsRunningTask(BukkitTask task) {
this.timeIsRunningTask = task; this.timeIsRunningTask = task;
@ -588,8 +569,7 @@ public class DGroup {
} }
/** /**
* @param floor * @param floor the next floor to set
* the next floor to set
*/ */
public void setNextFloor(DResourceWorld floor) { public void setNextFloor(DResourceWorld floor) {
nextFloor = floor; nextFloor = floor;
@ -621,8 +601,7 @@ public class DGroup {
} }
/** /**
* @param score * @param score the score to set
* the score to set
*/ */
public void setScore(int score) { public void setScore(int score) {
this.score = score; this.score = score;
@ -636,8 +615,7 @@ public class DGroup {
} }
/** /**
* @param initialLives * @param initialLives the initial group lives to set
* the initial group lives to set
*/ */
public void setInitialLives(int initialLives) { public void setInitialLives(int initialLives) {
this.initialLives = initialLives; this.initialLives = initialLives;
@ -651,8 +629,7 @@ public class DGroup {
} }
/** /**
* @param lives * @param lives the group lives to set
* the group lives to set
*/ */
public void setLives(int lives) { public void setLives(int lives) {
this.lives = lives; this.lives = lives;
@ -697,8 +674,7 @@ public class DGroup {
/** /**
* The group finishs the current floor. * The group finishs the current floor.
* *
* @param specifiedFloor * @param specifiedFloor the name of the next floor
* the name of the next floor
*/ */
public void finishFloor(DResourceWorld specifiedFloor) { public void finishFloor(DResourceWorld specifiedFloor) {
DungeonConfig dConfig = dungeon.getConfig(); DungeonConfig dConfig = dungeon.getConfig();
@ -924,7 +900,9 @@ public class DGroup {
} }
/** /**
* Send a message to all players in the group * Sends a message to all players in the group.
*
* @param message the message to send
*/ */
public void sendMessage(String message) { public void sendMessage(String message) {
for (Player player : players.getOnlinePlayers()) { for (Player player : players.getOnlinePlayers()) {
@ -935,10 +913,10 @@ public class DGroup {
} }
/** /**
* Send a message to all players in the group * Sends a message to all players in the group.
* *
* @param except * @param message the message to sent
* Players who do not receive the message * @param except Players who shall not receive the message
*/ */
public void sendMessage(String message, Player... except) { public void sendMessage(String message, Player... except) {
HashSet<Player> exceptSet = new HashSet<>(Arrays.asList(except)); HashSet<Player> exceptSet = new HashSet<>(Arrays.asList(except));
@ -979,8 +957,7 @@ public class DGroup {
} }
/** /**
* @param gameWorld * @param gameWorld the DGameWorld to check
* the DGameWorld to check
* @return a List of DGroups in this DGameWorld * @return a List of DGroups in this DGameWorld
*/ */
public static List<DGroup> getByGameWorld(DGameWorld gameWorld) { public static List<DGroup> getByGameWorld(DGameWorld gameWorld) {

View File

@ -42,16 +42,14 @@ public abstract class DInstancePlayer extends DGlobalPlayer {
/* Getters and setters */ /* Getters and setters */
/** /**
* @return * @return the instance
* the instance
*/ */
public World getWorld() { public World getWorld() {
return world; return world;
} }
/** /**
* @param world * @param instance the instance to set
* the instance to set
*/ */
public void setWorld(World instance) { public void setWorld(World instance) {
world = instance; world = instance;
@ -96,8 +94,7 @@ public abstract class DInstancePlayer extends DGlobalPlayer {
/** /**
* Makes the player send a message to the world. * Makes the player send a message to the world.
* *
* @param message * @param message the message to send
* the message to send
*/ */
public void chat(String message) { public void chat(String message) {
DInstanceWorld instance = plugin.getDWorlds().getInstanceByWorld(world); DInstanceWorld instance = plugin.getDWorlds().getInstanceByWorld(world);
@ -124,9 +121,7 @@ public abstract class DInstancePlayer extends DGlobalPlayer {
/** /**
* Repeating checks for the player. * Repeating checks for the player.
* *
* @param updateSecond * @param updateSecond Not all checks have to be done as often as others; some are just done in "update seconds".
* Not all checks have to be done as often as others;
* some are just done in "update seconds".
*/ */
public abstract void update(boolean updateSecond); public abstract void update(boolean updateSecond);

View File

@ -137,10 +137,8 @@ public enum DPermission {
} }
/** /**
* @param node * @param node the node String, with or without "dxl."
* the node String, with or without "dxl." * @return the DPermission value
* @return
* the DPermission value
*/ */
public static DPermission getByNode(String node) { public static DPermission getByNode(String node) {
for (DPermission permission : values()) { for (DPermission permission : values()) {
@ -153,8 +151,8 @@ public enum DPermission {
} }
/** /**
* @param permission * @param sender the CommandSender
* the permission to check * @param permission the permission to check
* @return if the player has the permission * @return if the player has the permission
*/ */
public static boolean hasPermission(CommandSender sender, DPermission permission) { public static boolean hasPermission(CommandSender sender, DPermission permission) {
@ -172,8 +170,8 @@ public enum DPermission {
} }
/** /**
* @param permission * @param sender the CommandSender
* the permission to check * @param permission the permission to check
* @return if the player has the permission * @return if the player has the permission
*/ */
public static boolean hasPermission(CommandSender sender, String permission) { public static boolean hasPermission(CommandSender sender, String permission) {

View File

@ -53,6 +53,7 @@ public class DPlayerCache {
} }
/** /**
* @param player the player to check
* @return the DGlobalPlayer which represents the player * @return the DGlobalPlayer which represents the player
*/ */
public DGlobalPlayer getByPlayer(Player player) { public DGlobalPlayer getByPlayer(Player player) {
@ -65,6 +66,7 @@ public class DPlayerCache {
} }
/** /**
* @param uuid the unique ID to check
* @return the DGlobalPlayer which represents the player with this UUID * @return the DGlobalPlayer which represents the player with this UUID
*/ */
public DGlobalPlayer getByUniqueId(UUID uuid) { public DGlobalPlayer getByUniqueId(UUID uuid) {
@ -123,8 +125,7 @@ public class DPlayerCache {
} }
/** /**
* @param player * @param player an instance of DGlobalPlayer to add
* an instance of DGlobalPlayer to add
*/ */
public void addPlayer(DGlobalPlayer player) { public void addPlayer(DGlobalPlayer player) {
removePlayer(player); removePlayer(player);
@ -132,8 +133,7 @@ public class DPlayerCache {
} }
/** /**
* @param player * @param player an instance of DGlobalPlayer to remove
* an instance of DGlobalPlayer to remove
*/ */
public void removePlayer(DGlobalPlayer player) { public void removePlayer(DGlobalPlayer player) {
for (DGlobalPlayer dGlobalPlayer : dGlobalPlayers) { for (DGlobalPlayer dGlobalPlayer : dGlobalPlayers) {
@ -153,11 +153,9 @@ public class DPlayerCache {
} }
/** /**
* Checks if an old DGamePlayer instance of the user exists. * Checks if an old DGamePlayer instance of the user exists. If yes, the old Player of the user is replaced with the new object.
* If yes, the old Player of the user is replaced with the new object.
* *
* @param player * @param player the player to check
* the player to check
* @return if the player exists * @return if the player exists
*/ */
public boolean checkPlayer(Player player) { public boolean checkPlayer(Player player) {
@ -181,6 +179,8 @@ public class DPlayerCache {
/** /**
* start a new SecureModeTask * start a new SecureModeTask
*
* @param period the period in ticks
*/ */
public void startSecureModeTask(long period) { public void startSecureModeTask(long period) {
secureModeTask = new SecureModeTask().runTaskTimer(plugin, period, period); secureModeTask = new SecureModeTask().runTaskTimer(plugin, period, period);
@ -195,6 +195,8 @@ public class DPlayerCache {
/** /**
* start a new LazyUpdateTask * start a new LazyUpdateTask
*
* @param period the period in ticks
*/ */
public void startUpdateTask(long period) { public void startUpdateTask(long period) {
updateTask = new UpdateTask().runTaskTimer(plugin, period, period); updateTask = new UpdateTask().runTaskTimer(plugin, period, period);
@ -209,6 +211,8 @@ public class DPlayerCache {
/** /**
* start a new LazyUpdateTask * start a new LazyUpdateTask
*
* @param period the period in ticks
*/ */
public void startLazyUpdateTask(long period) { public void startLazyUpdateTask(long period) {
lazyUpdateTask = new LazyUpdateTask().runTaskTimer(plugin, period, period); lazyUpdateTask = new LazyUpdateTask().runTaskTimer(plugin, period, period);

View File

@ -96,8 +96,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param keepInventoryOnEscape * @param keepInventoryAfterLogout set if the inventory shall be reset after a logout
* set if the inventory shall be reset after a logout
*/ */
public void setKeepInventoryAfterLogout(boolean keepInventoryAfterLogout) { public void setKeepInventoryAfterLogout(boolean keepInventoryAfterLogout) {
this.keepInventoryAfterLogout = keepInventoryAfterLogout; this.keepInventoryAfterLogout = keepInventoryAfterLogout;
@ -116,8 +115,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param location * @param location the location to set
* the location to set
*/ */
public void setOldLocation(Location location) { public void setOldLocation(Location location) {
oldLocation = location; oldLocation = location;
@ -131,8 +129,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param inventory * @param inventory the inventory to set
* the inventory to set
*/ */
public void setOldInventory(List<ItemStack> inventory) { public void setOldInventory(List<ItemStack> inventory) {
oldInventory = inventory; oldInventory = inventory;
@ -146,8 +143,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param inventory * @param inventory the inventory to set
* the inventory to set
*/ */
public void setOldArmor(List<ItemStack> inventory) { public void setOldArmor(List<ItemStack> inventory) {
oldArmor = inventory; oldArmor = inventory;
@ -161,8 +157,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param offHand * @param offHand the off hand item to set
* the off hand item to set
*/ */
public void setOldOffHand(ItemStack offHand) { public void setOldOffHand(ItemStack offHand) {
oldOffHand = offHand; oldOffHand = offHand;
@ -176,8 +171,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param level * @param level the level to set
* the level to set
*/ */
public void setOldLevel(int level) { public void setOldLevel(int level) {
oldLvl = level; oldLvl = level;
@ -191,8 +185,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param exp * @param exp the amount of exp to set
* the amount of exp to set
*/ */
public void setOldExp(float exp) { public void setOldExp(float exp) {
oldExp = exp; oldExp = exp;
@ -206,8 +199,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param maxHealth * @param maxHealth the maximum health to set
* the maximum health to set
*/ */
public void setOldMaxHealth(double maxHealth) { public void setOldMaxHealth(double maxHealth) {
oldMaxHealth = maxHealth; oldMaxHealth = maxHealth;
@ -221,8 +213,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param health * @param health the health to set
* the health to set
*/ */
public void setOldHealth(double health) { public void setOldHealth(double health) {
oldHealth = health; oldHealth = health;
@ -236,8 +227,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param foodLevel * @param foodLevel the food level to set
* the food level to set
*/ */
public void setOldFoodLevel(int foodLevel) { public void setOldFoodLevel(int foodLevel) {
oldFoodLevel = foodLevel; oldFoodLevel = foodLevel;
@ -251,8 +241,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param fireTicks * @param fireTicks the fire ticks to set
* the fire ticks to set
*/ */
public void setFireTicks(int fireTicks) { public void setFireTicks(int fireTicks) {
oldFireTicks = fireTicks; oldFireTicks = fireTicks;
@ -266,8 +255,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param gameMode * @param gameMode the GameMode to set
* the GameMode to set
*/ */
public void setOldGameMode(GameMode gameMode) { public void setOldGameMode(GameMode gameMode) {
oldGameMode = gameMode; oldGameMode = gameMode;
@ -281,8 +269,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param potionEffects * @param potionEffects the potion effects to set
* the potion effects to set
*/ */
public void setOldPotionEffects(Collection<PotionEffect> potionEffects) { public void setOldPotionEffects(Collection<PotionEffect> potionEffects) {
oldPotionEffects = potionEffects; oldPotionEffects = potionEffects;
@ -296,8 +283,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param dungeon * @param dungeon the dungeon to check
* the dungeon to check
* @return the time when the player started the dungeon for the last time * @return the time when the player started the dungeon for the last time
*/ */
public long getTimeLastStarted(String dungeon) { public long getTimeLastStarted(String dungeon) {
@ -310,10 +296,8 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param dungeon * @param dungeon the started dungeon
* the started dungeon * @param time the time when the dungeon was started
* @param time
* the time when the dungeon was started
*/ */
public void setTimeLastStarted(String dungeon, long time) { public void setTimeLastStarted(String dungeon, long time) {
timeLastStarted.put(dungeon.toLowerCase(), time); timeLastStarted.put(dungeon.toLowerCase(), time);
@ -328,8 +312,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param dungeon * @param dungeon the dungeon to check
* the dungeon to check
* @return the time when the player finished the dungeon for the last time * @return the time when the player finished the dungeon for the last time
*/ */
public long getTimeLastFinished(String dungeon) { public long getTimeLastFinished(String dungeon) {
@ -342,10 +325,8 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param dungeon * @param dungeon the finished dungeon
* the finished dungeon * @param time the time when the dungeon was finished
* @param time
* the time when the dungeon was finished
*/ */
public void setTimeLastFinished(String dungeon, long time) { public void setTimeLastFinished(String dungeon, long time) {
timeLastFinished.put(dungeon.toLowerCase(), time); timeLastFinished.put(dungeon.toLowerCase(), time);
@ -354,8 +335,7 @@ public class DPlayerData extends DREConfig {
/* Actions */ /* Actions */
/** /**
* @param dungeon * @param dungeon the started dungeon
* the started dungeon
*/ */
public void logTimeLastStarted(String dungeon) { public void logTimeLastStarted(String dungeon) {
timeLastStarted.put(dungeon.toLowerCase(), System.currentTimeMillis()); timeLastStarted.put(dungeon.toLowerCase(), System.currentTimeMillis());
@ -363,8 +343,7 @@ public class DPlayerData extends DREConfig {
} }
/** /**
* @param dungeon * @param dungeon the finished dungeon
* the finished dungeon
*/ */
public void logTimeLastFinished(String dungeon) { public void logTimeLastFinished(String dungeon) {
timeLastFinished.put(dungeon.toLowerCase(), System.currentTimeMillis()); timeLastFinished.put(dungeon.toLowerCase(), System.currentTimeMillis());
@ -446,8 +425,7 @@ public class DPlayerData extends DREConfig {
/** /**
* Saves the player's data to the file. * Saves the player's data to the file.
* *
* @param player * @param player the Player to save
* the Player to save
*/ */
public void savePlayerState(Player player) { public void savePlayerState(Player player) {
oldGameMode = player.getGameMode(); oldGameMode = player.getGameMode();

View File

@ -44,8 +44,7 @@ public class FeeLevelRequirement extends Requirement {
} }
/** /**
* @param fee * @param fee the fee to set
* the fee to set
*/ */
public void setFee(int fee) { public void setFee(int fee) {
this.fee = fee; this.fee = fee;

View File

@ -42,8 +42,7 @@ public class FeeMoneyRequirement extends Requirement {
} }
/** /**
* @param fee * @param fee the fee to set
* the fee to set
*/ */
public void setFee(double fee) { public void setFee(double fee) {
this.fee = fee; this.fee = fee;

View File

@ -38,8 +38,7 @@ public class GroupSizeRequirement extends Requirement {
} }
/** /**
* @param minimum * @param minimum the minimal group size to set
* the minimal group size to set
*/ */
public void setMinimum(int minimum) { public void setMinimum(int minimum) {
this.minimum = minimum; this.minimum = minimum;
@ -53,8 +52,7 @@ public class GroupSizeRequirement extends Requirement {
} }
/** /**
* @param maximum * @param maximum the maximal group size to set
* the maximal group size to set
*/ */
public void setMaximum(int maximum) { public void setMaximum(int maximum) {
this.maximum = maximum; this.maximum = maximum;

View File

@ -40,8 +40,7 @@ public class PermissionRequirement extends Requirement {
} }
/** /**
* @param permissions * @param permissions the permissions to set
* the permissions to set
*/ */
public void setPermissions(List<String> permissions) { public void setPermissions(List<String> permissions) {
this.permissions = permissions; this.permissions = permissions;

View File

@ -34,8 +34,8 @@ public class RequirementTypeCache {
} }
/** /**
* @return * @param identifier the identifier to check
* the requirement type which has the identifier * @return the requirement type which has the identifier
*/ */
public RequirementType getByIdentifier(String identifier) { public RequirementType getByIdentifier(String identifier) {
for (RequirementType type : types) { for (RequirementType type : types) {
@ -48,24 +48,21 @@ public class RequirementTypeCache {
} }
/** /**
* @return * @return the requirement types
* the requirement types
*/ */
public List<RequirementType> getRequirements() { public List<RequirementType> getRequirements() {
return types; return types;
} }
/** /**
* @param type * @param type the requirement type to add
* the requirement type to add
*/ */
public void addRequirement(RequirementType type) { public void addRequirement(RequirementType type) {
types.add(type); types.add(type);
} }
/** /**
* @param type * @param type the requirement type to remove
* the requirement type to remove
*/ */
public void removeRequirement(RequirementType type) { public void removeRequirement(RequirementType type) {
types.remove(type); types.remove(type);

View File

@ -40,24 +40,21 @@ public class ItemReward extends Reward {
} }
/** /**
* @param items * @param items the reward items to set
* the reward items to set
*/ */
public void setItems(List<ItemStack> items) { public void setItems(List<ItemStack> items) {
this.items = items; this.items = items;
} }
/** /**
* @param items * @param items the reward items to add
* the reward items to add
*/ */
public void addItems(ItemStack... items) { public void addItems(ItemStack... items) {
this.items.addAll(Arrays.asList(items)); this.items.addAll(Arrays.asList(items));
} }
/** /**
* @param items * @param items the reward items to remove
* the reward items to remove
*/ */
public void removeItems(ItemStack... items) { public void removeItems(ItemStack... items) {
this.items.addAll(Arrays.asList(items)); this.items.addAll(Arrays.asList(items));

View File

@ -37,16 +37,14 @@ public class LevelReward extends Reward {
} }
/** /**
* @param levels * @param levels the levels to add
* the levels to add
*/ */
public void addLevels(int levels) { public void addLevels(int levels) {
this.levels += levels; this.levels += levels;
} }
/** /**
* @param levels * @param levels the levels to set
* the levels to set
*/ */
public void setLevels(int levels) { public void setLevels(int levels) {
this.levels = levels; this.levels = levels;

View File

@ -37,16 +37,14 @@ public class MoneyReward extends Reward {
} }
/** /**
* @param money * @param money the money to add
* the money to add
*/ */
public void addMoney(double money) { public void addMoney(double money) {
this.money += money; this.money += money;
} }
/** /**
* @param money * @param money the money to set
* the money to set
*/ */
public void setMoney(double money) { public void setMoney(double money) {
this.money = money; this.money = money;

View File

@ -37,6 +37,7 @@ public class RewardTypeCache {
} }
/** /**
* @param identifier the identifier to check
* @return the reward type which has the identifier * @return the reward type which has the identifier
*/ */
public RewardType getByIdentifier(String identifier) { public RewardType getByIdentifier(String identifier) {
@ -57,16 +58,14 @@ public class RewardTypeCache {
} }
/** /**
* @param type * @param type the reward type to add
* the reward type to add
*/ */
public void addReward(RewardType type) { public void addReward(RewardType type) {
types.add(type); types.add(type);
} }
/** /**
* @param type * @param type the reward type to remove
* the reward type to remove
*/ */
public void removeReward(RewardType type) { public void removeReward(RewardType type) {
types.remove(type); types.remove(type);

View File

@ -52,8 +52,7 @@ public class BossShopSign extends DSign {
} }
/** /**
* @param name * @param name the name of the shop
* the name of the shop
*/ */
public void setShopName(String name) { public void setShopName(String name) {
shopName = name; shopName = name;

View File

@ -57,8 +57,7 @@ public class ChestSign extends DSign {
} }
/** /**
* @param amount * @param amount the amount to set
* the amount to set
*/ */
public void setMoneyReward(double amount) { public void setMoneyReward(double amount) {
moneyReward = amount; moneyReward = amount;
@ -72,8 +71,7 @@ public class ChestSign extends DSign {
} }
/** /**
* @param amount * @param amount the amount to set
* the amount to set
*/ */
public void setLevelReward(int amount) { public void setLevelReward(int amount) {
levelReward = amount; levelReward = amount;
@ -90,8 +88,7 @@ public class ChestSign extends DSign {
} }
/** /**
* @param items * @param items the items to set as chest contents
* the items to set as chest contents
*/ */
public void setItemReward(ItemStack[] items) { public void setItemReward(ItemStack[] items) {
chestContent = items; chestContent = items;
@ -105,8 +102,7 @@ public class ChestSign extends DSign {
} }
/** /**
* @param lootTable * @param lootTable the loot table to set
* the loot table to set
*/ */
public void setLootTable(LootTable lootTable) { public void setLootTable(LootTable lootTable) {
this.lootTable = lootTable; this.lootTable = lootTable;

View File

@ -96,8 +96,7 @@ public abstract class DSign {
} }
/** /**
* @param sign * @param sign the sign to set
* the sign to set
*/ */
public void setSign(Sign sign) { public void setSign(Sign sign) {
this.sign = sign; this.sign = sign;
@ -111,8 +110,7 @@ public abstract class DSign {
} }
/** /**
* @param lines * @param lines the sign lines to set
* the sign lines to set
*/ */
public void setLines(String[] lines) { public void setLines(String[] lines) {
this.lines = lines; this.lines = lines;
@ -140,16 +138,14 @@ public abstract class DSign {
} }
/** /**
* @param trigger * @param trigger the trigger to add
* the trigger to add
*/ */
public void addTrigger(Trigger trigger) { public void addTrigger(Trigger trigger) {
triggers.add(trigger); triggers.add(trigger);
} }
/** /**
* @param trigger * @param trigger the trigger to remove
* the trigger to remove
*/ */
public void removeTrigger(Trigger trigger) { public void removeTrigger(Trigger trigger) {
triggers.remove(trigger); triggers.remove(trigger);
@ -210,8 +206,7 @@ public abstract class DSign {
/** /**
* Set a placeholder to show that the sign is setup incorrectly. * Set a placeholder to show that the sign is setup incorrectly.
* *
* @param reason * @param reason the reason why the sign is marked as erroneous
* the reason why the sign is marked as erroneous
*/ */
public void markAsErroneous(String reason) { public void markAsErroneous(String reason) {
erroneous = true; erroneous = true;

View File

@ -44,16 +44,14 @@ public class DSignTypeCache {
} }
/** /**
* @param type * @param type the type to add
* the type to add
*/ */
public void addDSign(DSignType type) { public void addDSign(DSignType type) {
types.add(type); types.add(type);
} }
/** /**
* @param type * @param type the type to remove
* the type to remove
*/ */
public void removeDSign(DSignType type) { public void removeDSign(DSignType type) {
types.remove(type); types.remove(type);

View File

@ -48,8 +48,7 @@ public class DropSign extends DSign {
} }
/** /**
* @param item * @param item the item to set
* the item to set
*/ */
public void setItem(ItemStack item) { public void setItem(ItemStack item) {
this.item = item; this.item = item;

View File

@ -47,8 +47,7 @@ public class FloorSign extends DSign {
} }
/** /**
* @param floor * @param floor the floor to set
* the floor to set
*/ */
public void setFloor(DResourceWorld floor) { public void setFloor(DResourceWorld floor) {
this.floor = floor; this.floor = floor;

View File

@ -57,8 +57,7 @@ public class LivesModifierSign extends DSign {
} }
/** /**
* @param lives * @param lives the lives to add / remove
* the lives to add / remove
*/ */
public void setLives(int lives) { public void setLives(int lives) {
this.lives = lives; this.lives = lives;

View File

@ -42,8 +42,7 @@ public abstract class LocationSign extends DSign {
} }
/** /**
* @return * @return the location marked by this sign
* the location marked by this sign
*/ */
public Location getLocation() { public Location getLocation() {
return location; return location;

View File

@ -48,8 +48,7 @@ public class OpenDoorSign extends DSign {
} }
/** /**
* @param door * @param door the door to open
* the door to open
*/ */
public void setDoor(LockedDoor door) { public void setDoor(LockedDoor door) {
this.door = door; this.door = door;
@ -63,8 +62,7 @@ public class OpenDoorSign extends DSign {
} }
/** /**
* @param active * @param active toggle the sign active
* toggle the sign active
*/ */
public void setActive(boolean active) { public void setActive(boolean active) {
this.active = active; this.active = active;

View File

@ -40,10 +40,8 @@ public abstract class PerPlayerSign extends DSign {
} }
/** /**
* @param player * @param player the player to check
* the player to check * @return true if the player already triggered the sign
* @return
* true if the player already triggered the sign
*/ */
public boolean isTriggeredByPlayer(Player player) { public boolean isTriggeredByPlayer(Player player) {
return triggered.contains(player.getUniqueId()); return triggered.contains(player.getUniqueId());

View File

@ -53,8 +53,7 @@ public class RedstoneSign extends DSign {
} }
/** /**
* @param initialized * @param initialized the initialized to set
* the initialized to set
*/ */
public void setInitialized(boolean initialized) { public void setInitialized(boolean initialized) {
this.initialized = initialized; this.initialized = initialized;
@ -68,8 +67,7 @@ public class RedstoneSign extends DSign {
} }
/** /**
* @param active * @param active the active to set
* the active to set
*/ */
public void setActive(boolean active) { public void setActive(boolean active) {
this.active = active; this.active = active;
@ -83,8 +81,7 @@ public class RedstoneSign extends DSign {
} }
/** /**
* @param enableTask * @param enableTask the enableTask to set
* the enableTask to set
*/ */
public void setEnableTask(BukkitTask enableTask) { public void setEnableTask(BukkitTask enableTask) {
this.enableTask = enableTask; this.enableTask = enableTask;
@ -98,8 +95,7 @@ public class RedstoneSign extends DSign {
} }
/** /**
* @param disableTask * @param disableTask the disableTask to set
* the disableTask to set
*/ */
public void setDisableTask(BukkitTask disableTask) { public void setDisableTask(BukkitTask disableTask) {
this.disableTask = disableTask; this.disableTask = disableTask;
@ -113,8 +109,7 @@ public class RedstoneSign extends DSign {
} }
/** /**
* @param block * @param block the block to set
* the block to set
*/ */
public void setBlock(Block block) { public void setBlock(Block block) {
this.block = block; this.block = block;
@ -128,8 +123,7 @@ public class RedstoneSign extends DSign {
} }
/** /**
* @param delay * @param delay the delay to set
* the delay to set
*/ */
public void setDelay(long delay) { public void setDelay(long delay) {
this.delay = delay; this.delay = delay;
@ -143,8 +137,7 @@ public class RedstoneSign extends DSign {
} }
/** /**
* @param offDelay * @param offDelay the offDelay to set
* the offDelay to set
*/ */
public void setOffDelay(long offDelay) { public void setOffDelay(long offDelay) {
this.offDelay = offDelay; this.offDelay = offDelay;
@ -158,8 +151,7 @@ public class RedstoneSign extends DSign {
} }
/** /**
* @param repeat * @param repeat the repeat to set
* the repeat to set
*/ */
public void setRepeat(int repeat) { public void setRepeat(int repeat) {
this.repeat = repeat; this.repeat = repeat;
@ -173,8 +165,7 @@ public class RedstoneSign extends DSign {
} }
/** /**
* @param repeatsToDo * @param repeatsToDo the repeatsToDo to set
* the repeatsToDo to set
*/ */
public void setRepeatsToDo(int repeatsToDo) { public void setRepeatsToDo(int repeatsToDo) {
this.repeatsToDo = repeatsToDo; this.repeatsToDo = repeatsToDo;

View File

@ -51,8 +51,7 @@ public class ResourcePackSign extends DSign {
} }
/** /**
* @param resourcePack * @param resourcePack the resource pack to set
* the resource pack to set
*/ */
public void setExternalMob(String resourcePack) { public void setExternalMob(String resourcePack) {
this.resourcePack = resourcePack; this.resourcePack = resourcePack;

View File

@ -24,8 +24,7 @@ import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.configuration.file.YamlConfiguration;
/** /**
* Representation of a sign script. * Representation of a sign script. Sign scripts allow to merge multiple dungeon signs at one position.
* Sign scripts allow to merge multiple dungeon signs at one position.
* *
* @author Daniel Saukel * @author Daniel Saukel
*/ */
@ -36,18 +35,15 @@ public class SignScript {
private List<String[]> signs; private List<String[]> signs;
/** /**
* @param file * @param file the script file
* the script file
*/ */
public SignScript(File file) { public SignScript(File file) {
this(file.getName().substring(0, file.getName().length() - 4), YamlConfiguration.loadConfiguration(file)); this(file.getName().substring(0, file.getName().length() - 4), YamlConfiguration.loadConfiguration(file));
} }
/** /**
* @param name * @param name the name of the Announcer
* the name of the Announcer * @param config the config that stores the information
* @param config
* the config that stores the information
*/ */
public SignScript(String name, FileConfiguration config) { public SignScript(String name, FileConfiguration config) {
this.name = name; this.name = name;
@ -76,8 +72,7 @@ public class SignScript {
} }
/** /**
* @param index * @param index the index number
* the index number
* @return the lines of the sign * @return the lines of the sign
*/ */
public String[] getLines(int index) { public String[] getLines(int index) {
@ -85,10 +80,8 @@ public class SignScript {
} }
/** /**
* @param index * @param index the index number
* the index number * @param lines the lines to set
* @param lines
* the lines to set
*/ */
public void setLines(int index, String[] lines) { public void setLines(int index, String[] lines) {
signs.set(index, lines); signs.set(index, lines);

View File

@ -39,6 +39,7 @@ public class SignScriptCache {
} }
/** /**
* @param name the name to check
* @return the script that has the name * @return the script that has the name
*/ */
public SignScript getByName(String name) { public SignScript getByName(String name) {
@ -59,16 +60,14 @@ public class SignScriptCache {
} }
/** /**
* @param script * @param script the SignScript to add
* the SignScript to add
*/ */
public void addScript(SignScript script) { public void addScript(SignScript script) {
scripts.add(script); scripts.add(script);
} }
/** /**
* @param script * @param script the SignScript to remove
* the SignScript to remove
*/ */
public void removeScript(SignScript script) { public void removeScript(SignScript script) {
scripts.remove(script); scripts.remove(script);

View File

@ -47,8 +47,7 @@ public class WaveSign extends DSign {
} }
/** /**
* @param mobCountIncreaseRate * @param mobCountIncreaseRate the mobCountIncreaseRate to set
* the mobCountIncreaseRate to set
*/ */
public void setMobCountIncreaseRate(double mobCountIncreaseRate) { public void setMobCountIncreaseRate(double mobCountIncreaseRate) {
this.mobCountIncreaseRate = mobCountIncreaseRate; this.mobCountIncreaseRate = mobCountIncreaseRate;
@ -62,8 +61,7 @@ public class WaveSign extends DSign {
} }
/** /**
* @param teleport * @param teleport Set if the players shall get teleported to the start location
* Set if the players shall get teleported to the start location
*/ */
public void setTeleport(boolean teleport) { public void setTeleport(boolean teleport) {
this.teleport = teleport; this.teleport = teleport;

View File

@ -47,8 +47,7 @@ public class ClassesSign extends DSign {
} }
/** /**
* @param dClass * @param dClass the DClass to set
* the DClass to set
*/ */
public void setDClass(DClass dClass) { public void setDClass(DClass dClass) {
this.dClass = dClass; this.dClass = dClass;

View File

@ -58,8 +58,7 @@ public class ReadySign extends DSign {
} }
/** /**
* @param gameType * @param gameType the gameType to set
* the gameType to set
*/ */
public void setGameType(GameType gameType) { public void setGameType(GameType gameType) {
this.gameType = gameType; this.gameType = gameType;
@ -73,8 +72,7 @@ public class ReadySign extends DSign {
} }
/** /**
* @param time * @param time the time in seconds until the game starts automatically; -1 for no auto start
* the time in seconds until the game starts automatically; -1 for no auto start
*/ */
public void setTimeToAutoStart(double time) { public void setTimeToAutoStart(double time) {
autoStart = time; autoStart = time;

View File

@ -46,8 +46,7 @@ public class StartSign extends LocationSign {
} }
/** /**
* @param id * @param id the ID to set
* the ID to set
*/ */
public void setId(int id) { public void setId(int id) {
this.id = id; this.id = id;

View File

@ -40,16 +40,14 @@ public class ActionBarSign extends PerPlayerSign {
/* Getters and setters*/ /* Getters and setters*/
/** /**
* @return * @return the text
* the text
*/ */
public String getText() { public String getText() {
return text; return text;
} }
/** /**
* @param text * @param text the text to set
* the text to set
*/ */
public void setText(String text) { public void setText(String text) {
this.text = text; this.text = text;

View File

@ -41,32 +41,28 @@ public class TitleSign extends PerPlayerSign {
/* Getters and setters*/ /* Getters and setters*/
/** /**
* @return * @return the title
* the title
*/ */
public String getTitle() { public String getTitle() {
return title; return title;
} }
/** /**
* @param text * @param text the text to set
* the text to set
*/ */
public void setTitle(String text) { public void setTitle(String text) {
title = text; title = text;
} }
/** /**
* @return * @return the subtitle
* the subtitle
*/ */
public String getSubtitle() { public String getSubtitle() {
return subtitle; return subtitle;
} }
/** /**
* @param text * @param text the text to set
* the text to set
*/ */
public void setSubtitle(String text) { public void setSubtitle(String text) {
subtitle = text; subtitle = text;

View File

@ -151,8 +151,7 @@ public class ExternalMobSign extends DSign implements MobSign {
} }
/** /**
* @param spawnLocation * @param spawnLocation the spawnLocation to set
* the spawnLocation to set
*/ */
public void setSpawnLocation(Location spawnLocation) { public void setSpawnLocation(Location spawnLocation) {
this.spawnLocation = spawnLocation; this.spawnLocation = spawnLocation;
@ -166,8 +165,7 @@ public class ExternalMobSign extends DSign implements MobSign {
} }
/** /**
* @param externalMob * @param externalMob the external mob to set
* the external mob to set
*/ */
public void setExternalMob(LivingEntity externalMob) { public void setExternalMob(LivingEntity externalMob) {
this.externalMob = externalMob; this.externalMob = externalMob;
@ -181,16 +179,14 @@ public class ExternalMobSign extends DSign implements MobSign {
} }
/** /**
* @param externalMob * @param externalMob the externalMob to add
* the externalMob to add
*/ */
public void addExternalMob(Entity externalMob) { public void addExternalMob(Entity externalMob) {
externalMobs.add(externalMob); externalMobs.add(externalMob);
} }
/** /**
* @param externalMob * @param externalMob the external mob to remove
* the external mob to remove
*/ */
public void removeExternalMob(Entity externalMob) { public void removeExternalMob(Entity externalMob) {
externalMobs.remove(externalMob); externalMobs.remove(externalMob);

View File

@ -29,8 +29,7 @@ public interface MobSign {
public String getMob(); public String getMob();
/** /**
* @param mob * @param mob the mob to set
* the mob to set
*/ */
public void setMob(String mob); public void setMob(String mob);
@ -40,8 +39,7 @@ public interface MobSign {
public int getMaxInterval(); public int getMaxInterval();
/** /**
* @param maxInterval * @param maxInterval the maximum interval between mob spawns
* the maximum interval between mob spawns
*/ */
public void setMaxInterval(int maxInterval); public void setMaxInterval(int maxInterval);
@ -51,8 +49,7 @@ public interface MobSign {
public int getInterval(); public int getInterval();
/** /**
* @param interval * @param interval the spawn interval
* the spawn interval
*/ */
public void setInterval(int interval); public void setInterval(int interval);
@ -62,8 +59,7 @@ public interface MobSign {
public int getAmount(); public int getAmount();
/** /**
* @param amount * @param amount the amount of mobs to set
* the amount of mobs to set
*/ */
public void setAmount(int amount); public void setAmount(int amount);
@ -73,8 +69,7 @@ public interface MobSign {
public int getInitialAmount(); public int getInitialAmount();
/** /**
* @param amount * @param amount the amount of mobs to set
* the amount of mobs to set
*/ */
public void setInitialAmount(int initialAmount); public void setInitialAmount(int initialAmount);
@ -84,8 +79,7 @@ public interface MobSign {
public boolean isInitialized(); public boolean isInitialized();
/** /**
* @param initialized * @param initialized set the sign initialized
* set the sign initialized
*/ */
public void setInitialized(boolean initialized); public void setInitialized(boolean initialized);
@ -95,8 +89,7 @@ public interface MobSign {
public boolean isActive(); public boolean isActive();
/** /**
* @param active * @param active set the sign active
* set the sign active
*/ */
public void setActive(boolean active); public void setActive(boolean active);
@ -106,8 +99,7 @@ public interface MobSign {
public BukkitTask getTask(); public BukkitTask getTask();
/** /**
* @param task * @param task the task to set
* the task to set
*/ */
public void setTask(BukkitTask task); public void setTask(BukkitTask task);

View File

@ -44,8 +44,7 @@ public class FortuneTrigger extends Trigger {
} }
/** /**
* @param chance * @param chance the chance to set
* the chance to set
*/ */
public void setChance(double chance) { public void setChance(double chance) {
this.chance = chance; this.chance = chance;

View File

@ -53,8 +53,7 @@ public class ProgressTrigger extends Trigger {
} }
/** /**
* @param floor * @param floor the specific floor to set
* the specific floor to set
*/ */
public void setFloor(DResourceWorld floor) { public void setFloor(DResourceWorld floor) {
this.floor = floor; this.floor = floor;
@ -68,8 +67,7 @@ public class ProgressTrigger extends Trigger {
} }
/** /**
* @param floorCount * @param floorCount the floor count to set
* the floor count to set
*/ */
public void setFloorCount(int floorCount) { public void setFloorCount(int floorCount) {
this.floorCount = floorCount; this.floorCount = floorCount;
@ -83,8 +81,7 @@ public class ProgressTrigger extends Trigger {
} }
/** /**
* @param waveCount * @param waveCount the wave count to set
* the wave count to set
*/ */
public void setWaveCount(int waveCount) { public void setWaveCount(int waveCount) {
this.waveCount = waveCount; this.waveCount = waveCount;

View File

@ -49,8 +49,7 @@ public abstract class Trigger {
} }
/** /**
* @param triggered * @param triggered the triggered to set
* the triggered to set
*/ */
public void setTriggered(boolean triggered) { public void setTriggered(boolean triggered) {
this.triggered = triggered; this.triggered = triggered;
@ -64,8 +63,7 @@ public abstract class Trigger {
} }
/** /**
* @param player * @param player the player to set
* the player to set
*/ */
public void setPlayer(Player player) { public void setPlayer(Player player) {
this.player = player; this.player = player;
@ -79,16 +77,14 @@ public abstract class Trigger {
} }
/** /**
* @param dSign * @param dSign the dSign to add
* the dSign to add
*/ */
public void addDSign(DSign dSign) { public void addDSign(DSign dSign) {
dSigns.add(dSign); dSigns.add(dSign);
} }
/** /**
* @param dSign * @param dSign the dSign to remove
* the dSign to remove
*/ */
public void removeDSign(DSign dSign) { public void removeDSign(DSign dSign) {
dSigns.remove(dSign); dSigns.remove(dSign);

View File

@ -37,6 +37,7 @@ public class TriggerTypeCache {
} }
/** /**
* @param identifier the identifier to check
* @return the trigger which has the identifier * @return the trigger which has the identifier
*/ */
public TriggerType getByIdentifier(String identifier) { public TriggerType getByIdentifier(String identifier) {
@ -57,16 +58,14 @@ public class TriggerTypeCache {
} }
/** /**
* @param type * @param type the type to add
* the type to add
*/ */
public void addTrigger(TriggerType type) { public void addTrigger(TriggerType type) {
types.add(type); types.add(type);
} }
/** /**
* @param type * @param type the type to remove
* the type to remove
*/ */
public void removeTrigger(TriggerType type) { public void removeTrigger(TriggerType type) {
types.remove(type); types.remove(type);

Some files were not shown because too many files have changed in this diff Show More