Class LocalSpawnControllerSystem
java.lang.Object
com.hypixel.hytale.component.system.System<EntityStore>
com.hypixel.hytale.component.system.tick.TickingSystem<EntityStore>
com.hypixel.hytale.server.spawning.local.LocalSpawnControllerSystem
- All Implemented Interfaces:
ISystem<EntityStore>,TickableSystem<EntityStore>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> private final Archetype<EntityStore> private static final intprivate final ComponentType<EntityStore, LocalSpawnBeacon> private final ResourceType<EntityStore, LocalSpawnState> static final doubleprivate final ComponentType<EntityStore, LegacySpawnBeaconEntity> private final ComponentType<EntityStore, LocalSpawnController> private final ComponentType<EntityStore, TransformComponent> private final ComponentType<EntityStore, WeatherTracker> Fields inherited from interface com.hypixel.hytale.component.system.ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionLocalSpawnControllerSystem(ComponentType<EntityStore, LocalSpawnController> spawnControllerComponentType, ComponentType<EntityStore, TransformComponent> transformComponentype, ComponentType<EntityStore, WeatherTracker> weatherTrackerComponentType, ComponentType<EntityStore, LocalSpawnBeacon> localSpawnBeaconComponentType, ComponentType<EntityStore, LegacySpawnBeaconEntity> spawnBeaconComponentType, ResourceType<EntityStore, LocalSpawnState> localSpawnStateResourceType, ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> beaconSpatialComponent) -
Method Summary
Modifier and TypeMethodDescriptionprivate static bytegetCachedAverageLightValue(LightType lightType, World world, int x, int y, int z, double sunlightFactor, TriIntObjectDoubleToByteFunction<BlockChunk> valueCalculator, it.unimi.dsi.fastutil.objects.Object2ByteMap<LightType> averageValues) private static booleanspawnLightLevelMatches(World world, int x, int y, int z, double sunlightFactor, BeaconSpawnWrapper wrapper, it.unimi.dsi.fastutil.objects.Object2ByteMap<LightType> averageValues) voidtick(float dt, int systemIndex, Store<EntityStore> store) Methods inherited from class com.hypixel.hytale.component.system.System
getComponentRegistrations, getResourceRegistrations, registerComponent, registerComponent, registerComponent, registerResource, registerResourceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.system.ISystem
getDependencies, getGroup, onSystemRegistered, onSystemUnregistered
-
Field Details
-
RUN_FREQUENCY_SECONDS
public static final double RUN_FREQUENCY_SECONDS- See Also:
-
LIGHT_LEVEL_EVALUATION_RADIUS
private static final int LIGHT_LEVEL_EVALUATION_RADIUS- See Also:
-
controllerArchetype
-
spawnControllerComponentType
-
transformComponentype
-
weatherTrackerComponentType
-
localSpawnBeaconComponentType
-
spawnBeaconComponentType
-
localSpawnStateResourceType
-
beaconSpatialComponent
private final ResourceType<EntityStore,SpatialResource<Ref<EntityStore>, beaconSpatialComponentEntityStore>>
-
-
Constructor Details
-
LocalSpawnControllerSystem
public LocalSpawnControllerSystem(ComponentType<EntityStore, LocalSpawnController> spawnControllerComponentType, ComponentType<EntityStore, TransformComponent> transformComponentype, ComponentType<EntityStore, WeatherTracker> weatherTrackerComponentType, ComponentType<EntityStore, LocalSpawnBeacon> localSpawnBeaconComponentType, ComponentType<EntityStore, LegacySpawnBeaconEntity> spawnBeaconComponentType, ResourceType<EntityStore, LocalSpawnState> localSpawnStateResourceType, ResourceType<EntityStore, SpatialResource<Ref<EntityStore>, EntityStore>> beaconSpatialComponent)
-
-
Method Details
-
tick
- Specified by:
tickin interfaceTickableSystem<EntityStore>- Specified by:
tickin classTickingSystem<EntityStore>
-
spawnLightLevelMatches
private static boolean spawnLightLevelMatches(@Nonnull World world, int x, int y, int z, double sunlightFactor, @Nonnull BeaconSpawnWrapper wrapper, @Nonnull it.unimi.dsi.fastutil.objects.Object2ByteMap<LightType> averageValues) -
getCachedAverageLightValue
private static byte getCachedAverageLightValue(LightType lightType, @Nonnull World world, int x, int y, int z, double sunlightFactor, @Nonnull TriIntObjectDoubleToByteFunction<BlockChunk> valueCalculator, @Nonnull it.unimi.dsi.fastutil.objects.Object2ByteMap<LightType> averageValues)
-