public class LocalSpawnControllerSystem extends TickingSystem
System for handling localspawncontroller mechanics. Systems contain game logic that operates on entities with specific component types.
java.lang.Object > TickingSystem > LocalSpawnControllerSystem
Field Summary
localSpawnState
Field localSpawnState.
spawnControllerComponent2
Field spawnControllerComponent2.
world
Field world.
pendingSpawns
Field pendingSpawns.
reference
Field reference.
spawnControllerComponent
Field spawnControllerComponent.
playerRefComponent
Field playerRefComponent.
transformComponent
Field transformComponent.
weatherTrackerComponent
Field weatherTrackerComponent.
environmentIndex
Field environmentIndex.
possibleBeacons
Field possibleBeacons.
firstBeacon
Field firstBeacon.
firstRange
Field firstRange.
beacon
Field beacon.
radius
Field radius.
yRange
Field yRange.
position
Field position.
largestDistanceSquared
Field largestDistanceSquared.
yDistance
Field yDistance.
y
Field y.
minY
Field minY.
maxY
Field maxY.
worldTimeResource
Field worldTimeResource.
sunlightFactor
Field sunlightFactor.
xPos
Field xPos.
yPos
Field yPos.
zPos
Field zPos.
averageLightValues
Field averageLightValues.
possibleBeacon
Field possibleBeacon.
existingBeaconReference
Field existingBeaconReference.
existingBeaconComponent
Field existingBeaconComponent.
existingBeaconTransformComponent
Field existingBeaconTransformComponent.
existingY
Field existingY.
existingBeaconIndex
Field existingBeaconIndex.
pending
Field pending.
pendingReference
Field pendingReference.
pendingTransformComponent
Field pendingTransformComponent.
pendingPosition
Field pendingPosition.
pendingY
Field pendingY.
xDiff
Field xDiff.
zDiff
Field zDiff.
distSquared
Field distSquared.
existingBeaconIndex2
Field existingBeaconIndex2.
beaconRef
Field beaconRef.
lightRangePredicate
Field lightRangePredicate.
lightValue
Field lightValue.
chunk
Field chunk.
blockChunk
Field blockChunk.
blockId
Field blockId.
Method Detail
LocalSpawnControllerSystem
public
LocalSpawnControllerSystem
(final ComponentType spawnControllerComponentType, final ComponentType transformComponentype, final ComponentType weatherTrackerComponentType, final ComponentType localSpawnBeaconComponentType, final ComponentType spawnBeaconComponentType, final ResourceType localSpawnStateResourceType, final ResourceType, EntityStore>> beaconSpatialComponent)
Method LocalSpawnControllerSystem.
- Parameters:
final ComponentTypespawnControllerComponentTypefinal ComponentTypetransformComponentypefinal ComponentTypeweatherTrackerComponentTypefinal ComponentTypelocalSpawnBeaconComponentTypefinal ComponentTypespawnBeaconComponentTypefinal ResourceTypelocalSpawnStateResourceTypefinal ResourceTypebeaconSpatialComponent, EntityStore>>
spawnLightLevelMatches
boolean
spawnLightLevelMatches
(@Nonnull final World world, final int x, final int y, final int z, final double sunlightFactor, @Nonnull final BeaconSpawnWrapper wrapper, @Nonnull final Object2ByteMap averageValues)
Method spawnLightLevelMatches.
- Parameters:
@Nonnull final Worldworldfinal intxfinal intyfinal intzfinal doublesunlightFactor@Nonnull final BeaconSpawnWrapperwrapper@Nonnull final Object2ByteMapaverageValues
getCachedAverageLightValue
byte
getCachedAverageLightValue
(final LightType lightType, @Nonnull final World world, final int x, final int y, final int z, final double sunlightFactor, @Nonnull final TriIntObjectDoubleToByteFunction valueCalculator, @Nonnull final Object2ByteMap averageValues)
Method getCachedAverageLightValue.
- Parameters:
final LightTypelightType@Nonnull final Worldworldfinal intxfinal intyfinal intzfinal doublesunlightFactor@Nonnull final TriIntObjectDoubleToByteFunctionvalueCalculator@Nonnull final Object2ByteMapaverageValues