Remove arrival/departure message methods from WorldProvider (#2733)

This commit is contained in:
mezz 2017-06-24 02:02:56 -07:00
parent 27321efb1f
commit a8734e368d
1 changed files with 1 additions and 37 deletions

View File

@ -65,7 +65,7 @@
} }
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
@@ -241,6 +216,339 @@ @@ -241,6 +216,303 @@
return new WorldBorder(); return new WorldBorder();
} }
@ -102,42 +102,6 @@
+ } + }
+ +
+ /** + /**
+ * A message to display to the user when they transfer to this dimension.
+ *
+ * @return The message to be displayed
+ */
+ public String getWelcomeMessage()
+ {
+ if (this instanceof WorldProviderEnd)
+ {
+ return "Entering the End";
+ }
+ else if (this instanceof WorldProviderHell)
+ {
+ return "Entering the Nether";
+ }
+ return null;
+ }
+
+ /**
+ * A Message to display to the user when they transfer out of this dismension.
+ *
+ * @return The message to be displayed
+ */
+ public String getDepartMessage()
+ {
+ if (this instanceof WorldProviderEnd)
+ {
+ return "Leaving the End";
+ }
+ else if (this instanceof WorldProviderHell)
+ {
+ return "Leaving the Nether";
+ }
+ return null;
+ }
+
+ /**
+ * The dimensions movement factor. Relative to normal overworld. + * The dimensions movement factor. Relative to normal overworld.
+ * It is applied to the players position when they transfer dimensions. + * It is applied to the players position when they transfer dimensions.
+ * Exa: Nether movement is 8.0 + * Exa: Nether movement is 8.0