Contents
Class NPCSpawn
java.lang.Object
com.hypixel.hytale.server.spawning.assets.spawns.config.NPCSpawn
- Direct Known Subclasses:
BeaconNPCSpawn, WorldNPCSpawn
Created on 23/11/2018
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<NPCSpawn> static final double[]static final int[]static final double[]static final float -
Constructor Summary
ConstructorsConstructorDescriptionNPCSpawn(String id, RoleSpawnParameters[] npcs, NPCSpawn.DespawnParameters despawnParameters, String[] environments, it.unimi.dsi.fastutil.ints.IntSet environmentIds, double[] dayTimeRange, int[] moonPhaseRange, Map<LightType, double[]> lightTypeMap, boolean scaleDayTimeRange) -
Method Summary
-
Field Details
-
HOURS_PER_DAY
public static final float HOURS_PER_DAY- See Also:
-
BASE_CODEC
-
DEFAULT_DAY_TIME_RANGE
public static final double[] DEFAULT_DAY_TIME_RANGE -
DEFAULT_MOON_PHASE_RANGE
public static final int[] DEFAULT_MOON_PHASE_RANGE -
FULL_LIGHT_RANGE
public static final double[] FULL_LIGHT_RANGE
-
-
Constructor Details
-
NPCSpawn
public NPCSpawn(String id, RoleSpawnParameters[] npcs, NPCSpawn.DespawnParameters despawnParameters, String[] environments, it.unimi.dsi.fastutil.ints.IntSet environmentIds, double[] dayTimeRange, int[] moonPhaseRange, Map<LightType, double[]> lightTypeMap, boolean scaleDayTimeRange)
-
-
Method Details
-
getId
-
getNPCs
-
getDespawnParameters
-
getEnvironments
-
getEnvironmentIds
public it.unimi.dsi.fastutil.ints.IntSet getEnvironmentIds() -
getDayTimeRange
public double[] getDayTimeRange() -
getMoonPhaseRange
public int[] getMoonPhaseRange() -
getLightRange
-
isScaleDayTimeRange
public boolean isScaleDayTimeRange() -
toString
-