BoundsComponentTester


public final class BoundsComponentTester


A test data accessor for a BoundsComponent to inspect and manipulate underlying fake data.

In a test environment, each entity created via BoundsComponent.create is backed by corresponding fake data in the fake runtime. This class provides a way to bridge the public BoundsComponent API with its internal fake state.

Summary

Public methods

boolean
equals(Object other)
int
final void

Simulates a bounds update event from the runtime, notifying all registered listeners.

Public methods

equals

public boolean equals(Object other)

hashCode

public int hashCode()

triggerOnBoundsUpdate

Added in 1.0.0-alpha16
public final void triggerOnBoundsUpdate(@NonNull BoundingBox boundingBox)

Simulates a bounds update event from the runtime, notifying all registered listeners.

This triggers callbacks registered via BoundsComponent.addBoundsUpdateListener.

Parameters
@NonNull BoundingBox boundingBox

The new BoundingBox.