95 lines
4.4 KiB
Java
95 lines
4.4 KiB
Java
|
package mineplex.hub;
|
||
|
|
||
|
import mineplex.core.common.util.UtilText;
|
||
|
import mineplex.core.common.util.UtilText.TextAlign;
|
||
|
|
||
|
import org.bukkit.Location;
|
||
|
import org.bukkit.block.BlockFace;
|
||
|
|
||
|
public class TextCreator
|
||
|
{
|
||
|
public HubManager Manager;
|
||
|
|
||
|
Location locComp;
|
||
|
Location locArcade;
|
||
|
Location locSurvival;
|
||
|
Location locOther;
|
||
|
|
||
|
BlockFace faceComp = BlockFace.SOUTH;
|
||
|
BlockFace faceArcade = BlockFace.WEST;
|
||
|
BlockFace faceSurvival = BlockFace.NORTH;
|
||
|
BlockFace faceOther = BlockFace.EAST;
|
||
|
|
||
|
|
||
|
public TextCreator(HubManager manager)
|
||
|
{
|
||
|
Manager = manager;
|
||
|
|
||
|
locComp = manager.GetSpawn().add(40, 10, 0);
|
||
|
locArcade = manager.GetSpawn().add(0, 10, 40);
|
||
|
locSurvival = manager.GetSpawn().add(-40, 10, 0);
|
||
|
locOther = manager.GetSpawn().add(0, 10, -40);
|
||
|
|
||
|
CreateText();
|
||
|
}
|
||
|
|
||
|
public void CreateText()
|
||
|
{
|
||
|
//Comp
|
||
|
UtilText.MakeText("COMPETITIVE", locComp, faceComp, 159, (byte)14, TextAlign.CENTER);
|
||
|
UtilText.MakeText("COMPETITIVE", locComp.clone().add(1, 0, 0), faceComp, 159, (byte)15, TextAlign.CENTER);
|
||
|
|
||
|
UtilText.MakeText("DOMINATION", locComp.clone().add(16, 14, 0), faceComp, 159, (byte)1, TextAlign.CENTER);
|
||
|
UtilText.MakeText("DOMINATION", locComp.clone().add(16, 14, 0), faceComp, 159, (byte)15, TextAlign.CENTER);
|
||
|
|
||
|
/*
|
||
|
UtilText.MakeText("DEATHMATCH", locComp.clone().add(16, 21, 0), faceComp, 159, (byte)4, TextAlign.CENTER);
|
||
|
UtilText.MakeText("DEATHMATCH", locComp.clone().add(16, 21, 0), faceComp, 159, (byte)15, TextAlign.CENTER);
|
||
|
|
||
|
UtilText.MakeText("CAPTURE THE PIG", locComp.clone().add(16, 28, 0), faceComp, 159, (byte)4, TextAlign.CENTER);
|
||
|
UtilText.MakeText("CAPTURE THE PIG", locComp.clone().add(16, 28, 0), faceComp, 159, (byte)15, TextAlign.CENTER);
|
||
|
*/
|
||
|
|
||
|
//Arcade
|
||
|
UtilText.MakeText("ARCADE", locArcade, faceArcade, 159, (byte)14, TextAlign.CENTER);
|
||
|
UtilText.MakeText("ARCADE", locArcade.clone().add(0, 0, 1), faceArcade, 159, (byte)15, TextAlign.CENTER);
|
||
|
|
||
|
//Arcade Minigames
|
||
|
UtilText.MakeText("MINIGAMES ", locArcade.clone().add(0, 12, 15), faceArcade, 159, (byte)4, TextAlign.RIGHT);
|
||
|
UtilText.MakeText("MINIGAMES ", locArcade.clone().add(0, 12, 16), faceArcade, 159, (byte)15, TextAlign.RIGHT);
|
||
|
|
||
|
UtilText.MakeText("super spleef ", locArcade.clone().add(0, 26, 30), faceArcade, 159, (byte)5, TextAlign.RIGHT);
|
||
|
UtilText.MakeText("one in the quiver ", locArcade.clone().add(0, 32, 30), faceArcade, 159, (byte)5, TextAlign.RIGHT);
|
||
|
UtilText.MakeText("dragon ", locArcade.clone().add(0, 38, 30), faceArcade, 159, (byte)5, TextAlign.RIGHT);
|
||
|
//UtilText.MakeText("mineware ", locArcade.clone().add(0, 44, 30), faceArcade, 159, (byte)5, TextAlign.RIGHT);
|
||
|
//UtilText.MakeText("arctic brawl ", locArcade.clone().add(0, 50, 30), faceArcade, 159, (byte)5, TextAlign.RIGHT);
|
||
|
|
||
|
//Aracde Megagames
|
||
|
UtilText.MakeText(" MEGAGAMES", locArcade.clone().add(0, 12, 15), faceArcade, 159, (byte)4, TextAlign.LEFT);
|
||
|
UtilText.MakeText(" MEGAGAMES", locArcade.clone().add(0, 12, 16), faceArcade, 159, (byte)15, TextAlign.LEFT);
|
||
|
|
||
|
UtilText.MakeText(" castle siege", locArcade.clone().add(0, 26, 30), faceArcade, 159, (byte)5, TextAlign.LEFT);
|
||
|
UtilText.MakeText(" zombie survival", locArcade.clone().add(0, 32, 30), faceArcade, 159, (byte)5, TextAlign.LEFT);
|
||
|
//UtilText.MakeText(" snow fight", locArcade.clone().add(0, 38, 30), faceArcade, 159, (byte)5, TextAlign.LEFT);
|
||
|
|
||
|
|
||
|
//Survival
|
||
|
UtilText.MakeText("SURVIVAL", locSurvival, faceSurvival, 159, (byte)14, TextAlign.CENTER);
|
||
|
UtilText.MakeText("SURVIVAL", locSurvival.clone().add(-1, 0, 0), faceSurvival, 159, (byte)15, TextAlign.CENTER);
|
||
|
|
||
|
UtilText.MakeText("THE BRIDGES", locSurvival.clone().add(-15, 14, 0), faceSurvival, 159, (byte)4, TextAlign.CENTER);
|
||
|
UtilText.MakeText("THE BRIDGES", locSurvival.clone().add(-16, 14, 0), faceSurvival, 159, (byte)15, TextAlign.CENTER);
|
||
|
|
||
|
//UtilText.MakeText("HUNGER GAMES", locSurvival.clone().add(-15, 21, 0), faceSurvival, 159, (byte)4, TextAlign.CENTER);
|
||
|
//UtilText.MakeText("HUNGER GAMES", locSurvival.clone().add(-16, 21, 0), faceSurvival, 159, (byte)15, TextAlign.CENTER);
|
||
|
|
||
|
|
||
|
//Other
|
||
|
UtilText.MakeText("CLASSICS", locOther, faceOther, 159, (byte)14, TextAlign.CENTER);
|
||
|
UtilText.MakeText("CLASSICS", locOther.add(0, 0, -1), faceOther, 159, (byte)15, TextAlign.CENTER);
|
||
|
|
||
|
UtilText.MakeText("MINEKART", locOther.clone().add(0, 14, -15), faceOther, 159, (byte)4, TextAlign.CENTER);
|
||
|
UtilText.MakeText("MINEKART", locOther.clone().add(0, 14, -16), faceOther, 159, (byte)15, TextAlign.CENTER);
|
||
|
}
|
||
|
}
|