mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-13 06:07:36 +01:00
Better toString() methods for API classes
This commit is contained in:
parent
1dc678eb9e
commit
e72f117eb0
@ -47,4 +47,9 @@ public class DataReloadEvent extends Event implements Cancellable {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -89,4 +89,9 @@ public class GroupCollectRewardEvent extends GroupEvent implements Cancellable {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{group=" + group + "; collector=" + collector + "; reward=" + reward + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -96,4 +96,9 @@ public class GroupCreateEvent extends GroupEvent implements Cancellable {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{group=" + group + "; creator=" + creator + "; cause=" + cause + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -93,4 +93,9 @@ public class GroupDisbandEvent extends GroupEvent implements Cancellable {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{group=" + group + "; disbander=" + disbander + "; cause=" + cause + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -67,4 +67,9 @@ public class GroupFinishDungeonEvent extends GroupEvent implements Cancellable {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{group=" + group + "; dungeon=" + dungeon + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -87,4 +87,9 @@ public class GroupFinishFloorEvent extends GroupEvent implements Cancellable {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{group=" + group + "; finished=" + finished + "; next=" + next + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -75,4 +75,9 @@ public class GroupPlayerJoinEvent extends GroupEvent implements Cancellable {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{group=" + group + "; player=" + player + "; creator=" + creator + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -95,4 +95,9 @@ public class GroupPlayerKickEvent extends GroupEvent implements Cancellable {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{group=" + group + "; player=" + player + "; cause=" + cause + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -64,4 +64,9 @@ public class GroupPlayerLeaveEvent extends GroupEvent implements Cancellable {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{group=" + group + "; player=" + player + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -75,4 +75,9 @@ public class GroupScoreEvent extends GroupEvent implements Cancellable {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{group=" + group + "; scorer=" + scorer + "; loserGroup=" + loserGroup + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -64,4 +64,9 @@ public class GroupStartFloorEvent extends GroupEvent implements Cancellable {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{group=" + group + "; gameWorld=" + gameWorld + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -64,4 +64,9 @@ public class DungeonMobDeathEvent extends DungeonMobEvent implements Cancellable
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{mob=" + mob + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -41,4 +41,9 @@ public class DungeonMobSpawnEvent extends DungeonMobEvent {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{mob=" + mob + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -51,4 +51,9 @@ public class EditPlayerEditEvent extends EditPlayerEvent {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{player=" + globalPlayer + "; newlyLoaded=" + newlyLoaded + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -83,4 +83,9 @@ public class EditPlayerLeaveEvent extends EditPlayerEvent implements Cancellable
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{player=" + globalPlayer + "; escape=" + escape + "; unloadIfEmpty=" + unloadIfEmpty + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -92,4 +92,9 @@ public class GamePlayerDeathEvent extends GamePlayerEvent implements Cancellable
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{player=" + globalPlayer + "; keepInventory=" + keepInventory + "; lostLives=" + lostLives + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -66,4 +66,9 @@ public class GamePlayerFinishEvent extends GamePlayerEvent implements Cancellabl
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{player=" + globalPlayer + "; hasToWait=" + hasToWait + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -66,4 +66,9 @@ public class GlobalPlayerRewardPayOutEvent extends GlobalPlayerEvent implements
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{player=" + globalPlayer + "; rewards=" + rewards + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -111,4 +111,9 @@ public class RequirementCheckEvent extends RequirementEvent implements Cancellab
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{requirement=" + requirement + "; player=" + player + "; keepInventory=" + keepInventory + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -87,4 +87,9 @@ public class RequirementDemandEvent extends RequirementEvent implements Cancella
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{requirement=" + requirement + "; player=" + player + "; keepInventory=" + keepInventory + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -39,4 +39,9 @@ public class EditWorldGenerateEvent extends EditWorldEvent {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{instance=" + instance + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -51,4 +51,9 @@ public class EditWorldSaveEvent extends EditWorldEvent implements Cancellable {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{instance=" + instance + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -71,4 +71,9 @@ public class EditWorldUnloadEvent extends InstanceWorldUnloadEvent {
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{instance=" + instance + "; save=" + save + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -64,4 +64,9 @@ public class GameWorldStartGameEvent extends GameWorldEvent implements Cancellab
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{instance=" + instance + "; dungeon=" + getDungeon() + "; game=" + game + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -59,4 +59,9 @@ public class InstanceWorldPostUnloadEvent extends ResourceWorldEvent {
|
||||
return handlers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{resource=" + resource + "; instanceWorldName=" + instanceWorldName + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -51,4 +51,9 @@ public class InstanceWorldUnloadEvent extends InstanceWorldEvent implements Canc
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{instance=" + instance + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -74,4 +74,9 @@ public class ResourceWorldInstantiateEvent extends ResourceWorldEvent implements
|
||||
this.cancelled = cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{resource=" + resource + "; instanceWorldName=" + instanceWorldName + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -127,4 +127,9 @@ public class PlayerClass {
|
||||
this.dog = dog;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{name=" + name + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user