mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Better toString() methods
This commit is contained in:
parent
6db3b1abbf
commit
f678136b95
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>de.erethon</groupId>
|
||||
<artifactId>dungeonsxl</artifactId>
|
||||
<version>0.16.2</version>
|
||||
<version>0.17-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
<name>DungeonsXL</name>
|
||||
<url>https://dre2n.github.io</url>
|
||||
|
@ -450,4 +450,9 @@ public class Announcer {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{name=" + name + /*"; dungeon=" + dungeon + */ "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -130,4 +130,9 @@ public class Dungeon {
|
||||
return new File(DungeonsXL.DUNGEONS, name + ".yml");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{name=" + name + "; multiFloor=" + isMultiFloor() + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -215,4 +215,9 @@ public class DungeonConfig extends DREConfig {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{file=" + file.getPath() + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -463,4 +463,9 @@ public class Game {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{dungeon=" + getDungeon() + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -114,4 +114,9 @@ public abstract class GlobalProtection {
|
||||
*/
|
||||
public abstract Collection<Block> getBlocks();
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{ID=" + id + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -174,4 +174,9 @@ public class DMob {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{type=" + type + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -402,4 +402,9 @@ public class DGlobalPlayer implements PlayerWrapper {
|
||||
new DGamePlayer(player, gameWorld);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{player=" + player + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -927,4 +927,9 @@ public class DGroup {
|
||||
return dGroups;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{name=" + name + "; captain=" + captain + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -64,4 +64,9 @@ public abstract class Requirement {
|
||||
|
||||
public abstract RequirementType getType();
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{type=" + getType() + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -62,4 +62,9 @@ public abstract class Reward {
|
||||
|
||||
public abstract RewardType getType();
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{type=" + getType() + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -271,4 +271,9 @@ public abstract class DSign {
|
||||
|
||||
public abstract DSignType getType();
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{sign=" + sign + "; gameWorld=" + gameWorld + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -87,4 +87,9 @@ public class SignScript {
|
||||
signs.set(index, lines);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{name=" + name + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -212,4 +212,9 @@ public abstract class Trigger {
|
||||
/* Abstracts */
|
||||
public abstract TriggerType getType();
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{type=" + getType() + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -183,4 +183,9 @@ public abstract class DInstanceWorld {
|
||||
*/
|
||||
public abstract void delete();
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{name=" + getName() + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -416,4 +416,9 @@ public class WorldConfig extends GameRuleProvider {
|
||||
this.worldEnvironment = worldEnvironment;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{file=" + file.getPath() + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -56,4 +56,9 @@ public abstract class GameBlock {
|
||||
*/
|
||||
public abstract boolean onBreak(BlockBreakEvent event);
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{block=" + block + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -62,4 +62,9 @@ public class LockedDoor extends GameBlock implements MultiBlock {
|
||||
state.update(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{block=" + block + "; attachedBlock=" + attachedBlock + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -95,4 +95,9 @@ public class TeamBed extends TeamBlock implements MultiBlock {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{block=" + block + "; attachedBlock=" + attachedBlock + "; owner=" + owner + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -46,4 +46,9 @@ public abstract class TeamBlock extends GameBlock {
|
||||
this.owner = owner;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + "{block=" + block + "; owner=" + owner + "}";
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user