public class SpawnSuppressionSystems
Class SpawnSuppressionSystems. Provides spawnsuppressionsystems functionality for the Hytale server.
java.lang.Object > SpawnSuppressionSystems
Field Summary
suppressionId
Field suppressionId.
suppression
Field suppression.
suppressedGroups
Field suppressedGroups.
set
Field set.
radius
Field radius.
position
Field position.
minChunkX
Field minChunkX.
minChunkZ
Field minChunkZ.
maxChunkX
Field maxChunkX.
maxChunkZ
Field maxChunkZ.
minY
Field minY.
maxY
Field maxY.
chunkSuppressionMap
Field chunkSuppressionMap.
chunkIndex
Field chunkIndex.
oldEntry
Field oldEntry.
chunkEntry
Field chunkEntry.
chunkReference
Field chunkReference.
chunkSuppressionQueue
Field chunkSuppressionQueue.
markerRef
Field markerRef.
marker
Field marker.
context
Field context.
resource
Field resource.
store
Field store.
suppressionController
Field suppressionController.
removedAssets
Field removedAssets.
chunkComponentStore
Field chunkComponentStore.
chunkStore
Field chunkStore.
archetype
Field archetype.
suppressor
Field suppressor.
transform
Field transform.
uuidComponent
Field uuidComponent.
fromExternal
Field fromExternal.
entry
Field entry.
uuid
Field uuid.
prev
Field prev.
oldSpans
Field oldSpans.
suppressedSpans
Field suppressedSpans.
Method Detail
suppressSpawns
void
suppressSpawns
(@Nonnull final ResourceType chunkSuppressionQueueResourceType, @Nonnull final ComponentType spawnMarkerEntityComponentType, final UUID uuid, @Nonnull final SpawnSuppressorEntry entry, @Nonnull final SpawnSuppressionController suppressionController, @Nonnull final Store store, @Nonnull final ChunkStore chunkComponentStore)
Method suppressSpawns.
- Parameters:
@Nonnull final ResourceTypechunkSuppressionQueueResourceType@Nonnull final ComponentTypespawnMarkerEntityComponentTypefinal UUIDuuid@Nonnull final SpawnSuppressorEntryentry@Nonnull final SpawnSuppressionControllersuppressionController@Nonnull final Storestore@Nonnull final ChunkStorechunkComponentStore
Load
public
Load
(final ResourceType spawnSuppressionControllerResourceType, final ComponentType spawnMarkerEntityComponentType, final ResourceType chunkSuppressionQueueResourceType, final ComponentType chunkSuppressionEntryComponentType)
Method Load.
- Parameters:
final ResourceTypespawnSuppressionControllerResourceTypefinal ComponentTypespawnMarkerEntityComponentTypefinal ResourceTypechunkSuppressionQueueResourceTypefinal ComponentTypechunkSuppressionEntryComponentType
EventRegistry
new
EventRegistry
(new CopyOnWriteArrayListMethod EventRegistry.
- Parameters:
newCopyOnWriteArrayList(
onSystemUnregistered
void
onSystemUnregistered
()
Method onSystemUnregistered.
onSpawnSuppressionsLoaded
Method onSpawnSuppressionsLoaded.
- Parameters:
@Nonnull final LoadedAssetsEventevent>
onSpawnSuppressionsRemoved
Method onSpawnSuppressionsRemoved.
- Parameters:
@Nonnull final RemovedAssetsEventevent>
rebuildSuppressionMap
void
rebuildSuppressionMap
(@Nonnull final World world, @Nonnull final Store store, @Nonnull final SpawnSuppressionController suppressionController)
Method rebuildSuppressionMap.
- Parameters:
@Nonnull final Worldworld@Nonnull final Storestore@Nonnull final SpawnSuppressionControllersuppressionController
Suppressor
public
Suppressor
(final ComponentType spawnSuppressorComponentType, final ResourceType spawnSuppressionControllerResourceType, final ComponentType spawnMarkerEntityComponentType, final ResourceType chunkSuppressionQueueResourceType, final ResourceType, EntityStore>> spawnMarkerSpatialResourceType)
Method Suppressor.
- Parameters:
final ComponentTypespawnSuppressorComponentTypefinal ResourceTypespawnSuppressionControllerResourceTypefinal ComponentTypespawnMarkerEntityComponentTypefinal ResourceTypechunkSuppressionQueueResourceTypefinal ResourceTypespawnMarkerSpatialResourceType, EntityStore>>
onEntityAdded
void
onEntityAdded
(@Nonnull final Ref reference, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityAdded.
- Parameters:
@Nonnull final Refreference@Nonnull final AddReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
SpawnSuppressorEntry
new
SpawnSuppressorEntry
(suppressor.getSpawnSuppression()
Method SpawnSuppressorEntry.
- Parameters:
suppressor.getSpawnSuppression(suppressor.getSpawnSuppression(
IllegalStateException
new
IllegalStateException
(String.format("A spawn suppressor with the ID %s is already registered.", uuid)
Method IllegalStateException.
- Parameters:
String.format("A spawn suppressor with the ID %s is alreadyregistered."uuiduuid
onEntityRemove
void
onEntityRemove
(@Nonnull final Ref reference, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityRemove.
- Parameters:
@Nonnull final Refreference@Nonnull final RemoveReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
EnsureNetworkSendable
public
EnsureNetworkSendable
()
Method EnsureNetworkSendable.
onEntityAdd
void
onEntityAdd
(@Nonnull final Holder holder, @Nonnull final AddReason reason, @Nonnull final Store store)
Method onEntityAdd.
- Parameters:
@Nonnull final Holderholder@Nonnull final AddReasonreason@Nonnull final Storestore
NetworkId
new
NetworkId
(store.getExternalData()
Method NetworkId.
- Parameters:
store.getExternalData(store.getExternalData(
onEntityRemoved
void
onEntityRemoved
(@Nonnull final Holder holder, @Nonnull final RemoveReason reason, @Nonnull final Store store)
Method onEntityRemoved.
- Parameters:
@Nonnull final Holderholder@Nonnull final RemoveReasonreason@Nonnull final Storestore