public class SpawnMarkerSuppressionSystem extends RefSystem
System for handling spawnmarkersuppression mechanics. Systems contain game logic that operates on entities with specific component types.
java.lang.Object > RefSystem > SpawnMarkerSuppressionSystem
Field Summary
suppressionController
final
SpawnSuppressionController
suppressionController
Field suppressionController.
marker
final
SpawnMarkerEntity
marker
Field marker.
transform
final
TransformComponent
transform
Field transform.
uuid
final
UUIDComponent
uuid
Field uuid.
suppression
final
SpawnSuppression
suppression
Field suppression.
radius
final
double
radius
Field radius.
radiusSquared
final
double
radiusSquared
Field radiusSquared.
Method Detail
SpawnMarkerSuppressionSystem
public
public
SpawnMarkerSuppressionSystem
(final ComponentType spawnMarkerEntityComponentType, final ResourceType spawnSuppressionControllerResourceType)
Method SpawnMarkerSuppressionSystem.
- Parameters:
final ComponentTypespawnMarkerEntityComponentTypefinal ResourceTypespawnSuppressionControllerResourceType
onEntityAdded
public
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
NullPointerException
public
new
NullPointerException
(String.format("No such suppression with ID %s", entry.getSuppressionId()
Method NullPointerException.
- Parameters:
String.format("No such suppression with ID%s"entry.getSuppressionId(entry.getSuppressionId(
if
public
else
if
(!(!suppression.isSuppressSpawnMarkers()
Method if.
- Parameters:
!(!suppression.isSuppressSpawnMarkers(!(!suppression.isSuppressSpawnMarkers(
onEntityRemove
public
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