Contents
Class BeaconSpawnWrapper
java.lang.Object
com.hypixel.hytale.server.spawning.wrappers.SpawnWrapper<BeaconNPCSpawn>
com.hypixel.hytale.server.spawning.wrappers.BeaconSpawnWrapper
Created on 15/04/2019
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubledoubledoublebooleanweatherMatches(int weatherIndex) Methods inherited from class SpawnWrapper
getEnableSafeSpawning, getLightRangePredicate, getRoles, getSpawn, getSpawnBlockSet, getSpawnFluidTag, getSpawnIndex, hasInvalidNPC, shouldDespawn, spawnParametersMatch, withinLightRange
-
Constructor Details
-
BeaconSpawnWrapper
-
-
Method Details
-
weatherMatches
public boolean weatherMatches(int weatherIndex) - Parameters:
weatherIndex- the current weather, resolved byWeatherResource.getEffectiveWeatherIndex- Returns:
- true when this beacon is allowed to spawn and stay in that weather
-
getMinDistanceFromPlayerSquared
public double getMinDistanceFromPlayerSquared() -
getTargetDistanceFromPlayerSquared
public double getTargetDistanceFromPlayerSquared() -
getBeaconRadius
public double getBeaconRadius() -
getSpawnRadius
public double getSpawnRadius() -
pickRole
-