Remove arrival/departure message methods from WorldProvider (#2733)
This commit is contained in:
parent
27321efb1f
commit
a8734e368d
|
@ -65,7 +65,7 @@
|
|||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
@@ -241,6 +216,339 @@
|
||||
@@ -241,6 +216,303 @@
|
||||
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.
|
||||
+ * It is applied to the players position when they transfer dimensions.
|
||||
+ * Exa: Nether movement is 8.0
|
||||
|
|
Loading…
Reference in New Issue