Class BeaconSpawnWrapper

java.lang.Object
com.hypixel.hytale.server.spawning.wrappers.SpawnWrapper<BeaconNPCSpawn>
com.hypixel.hytale.server.spawning.wrappers.BeaconSpawnWrapper

public class BeaconSpawnWrapper extends SpawnWrapper<BeaconNPCSpawn>
Created on 15/04/2019
  • Constructor Details

    • BeaconSpawnWrapper

      public BeaconSpawnWrapper(@Nonnull BeaconNPCSpawn spawn)
  • Method Details

    • weatherMatches

      public boolean weatherMatches(int weatherIndex)
      Parameters:
      weatherIndex - the current weather, resolved by WeatherResource.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

      @Nullable public RoleSpawnParameters pickRole(Random chanceProvider)