Package btw.util.hardcorespawn
Class HardcoreSpawnUtils
java.lang.Object
btw.util.hardcorespawn.HardcoreSpawnUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanassignNewHardcoreSpawnLocation(World world, MinecraftServer server, EntityPlayerMP player) static doublegetAbandonedVillageRadius(World world) static doublegetCarvedPumpkinRadius(World world) static doublestatic doublegetLootedTempleRadius(World world) static doublestatic doublespecifies the radius in which a player will respawn, if returning to the same spawn point after multiple deathsstatic doubleplayer respawn minimum radius from original spawnstatic doublegetPlayerSpawnRadius(World world) player respawn maximum radius from original spawnstatic doublestatic doublestatic voidhandleHardcoreSpawn(MinecraftServer server, EntityPlayerMP oldPlayer, EntityPlayerMP newPlayer) static voidhandleInitialSpawn(MinecraftServer server, EntityPlayerMP player) static booleanisInLootedTempleRadius(World world, int x, int z)
-
Field Details
-
HARDCORE_SPAWN_TIME_BETWEEN_REASSIGNMENTS
public static final int HARDCORE_SPAWN_TIME_BETWEEN_REASSIGNMENTS- See Also:
-
blacklistedBiomes
-
-
Constructor Details
-
HardcoreSpawnUtils
public HardcoreSpawnUtils()
-
-
Method Details
-
getPlayerSpawnRadius
player respawn maximum radius from original spawn -
getPlayerSpawnExclusionRadius
player respawn minimum radius from original spawn -
getPlayerMultipleRespawnRadius
public static double getPlayerMultipleRespawnRadius()specifies the radius in which a player will respawn, if returning to the same spawn point after multiple deaths -
getAbandonedVillageRadius
-
getPartiallyAbandonedVillageRadius
-
getLootedTempleRadius
-
getCarvedPumpkinRadius
-
getWorldTypeRadiusMultiplier
-
getWorldDifficultyRadiusMultiplier
-
getGameProgressRadiusMultiplier
-
handleInitialSpawn
-
handleHardcoreSpawn
public static void handleHardcoreSpawn(MinecraftServer server, EntityPlayerMP oldPlayer, EntityPlayerMP newPlayer) -
assignNewHardcoreSpawnLocation
public static boolean assignNewHardcoreSpawnLocation(World world, MinecraftServer server, EntityPlayerMP player) -
isInLootedTempleRadius
-