Permalink
Browse files

Fix enum lists in event documentation due to formatting issue

  • Loading branch information...
PseudoKnight committed Sep 16, 2018
1 parent 0b87a48 commit ddefc8860ea2e4e01f7740ab4a21e188ec766c8e
@@ -593,7 +593,7 @@ public String docs() {
+ " | ignitingblock: the block's type, if caused by block"
+ " | ignitingblocklocation: the block's location that ignited"
+ " | location: the locationArray that got ignited"
+ " | cause: the cause of ignition, one of: " + StringUtils.Join(MCIgniteCause.values(), ", ") + "}"
+ " | cause: the cause of ignition, one of " + StringUtils.Join(MCIgniteCause.values(), ", ") + "}"
+ "{}"
+ "{}";
}
@@ -1294,7 +1294,7 @@ public Driver driver() {
public String docs() {
return "{}"
+ " This event is called when a noteblock is activated via player interaction or redstone."
+ " The instrument may be one of: " + StringUtils.Join(MCInstrument.values(), ", ", ", or ") + "."
+ " The instrument may be one of " + StringUtils.Join(MCInstrument.values(), ", ", ", or ") + "."
+ " {location: The location of the noteblock | instrument: The name of the sound"
+ " | tone: The note played (eg. F#) | octave: The octave the tone was played (0 - 2)}"
+ " {}"
@@ -2020,7 +2020,7 @@ public String docs() {
+ " Fired when an entity regained the health."
+ " {id: The entity ID of regained entity"
+ " amount: The amount of regained the health |"
+ " cause: The cause of regain, one of: " + StringUtils.Join(MCRegainReason.values(), ", ")
+ " cause: The cause of regain, one of " + StringUtils.Join(MCRegainReason.values(), ", ")
+ " player: The regained player}"
+ " {amount}"
+ " {}";
@@ -348,7 +348,7 @@ public String docs() {
+ "| from: <location match> This should be a location array (x, y, z, world)."
+ "| to: <location match> The location the player is now in. This should be a location array as well.} "
+ "{player | from: The location the player is coming from | to: The location the player is now in | "
+ "type: the type of teleport occuring, one of: " + StringUtils.Join(MCTeleportCause.values(), ", ") + "}"
+ "type: the type of teleport occuring, one of " + StringUtils.Join(MCTeleportCause.values(), ", ") + "}"
+ "{to}"
+ "{}";
}
@@ -445,7 +445,7 @@ public String getName() {
public String docs() {
return "{player: <macro> | from: <location match> This should be a location array (x, y, z, world)."
+ " | to: <location match> The location the player is coming to. This should be a location array as well."
+ " | type: <macro> the type of portal occuring, one of: " + StringUtils.Join(MCTeleportCause.values(), ", ") + "}"
+ " | type: <macro> the type of portal occuring, one of " + StringUtils.Join(MCTeleportCause.values(), ", ") + "}"
+ "Fired when a player collides with portal."
+ "{player: The player that teleport | from: The location the player is coming from"
+ " | to: The location the player is coming to. Returns null when using Nether portal and \"allow-nether\""

0 comments on commit ddefc88

Please sign in to comment.