Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
$
- $(double, double) - Static method in class io.github.srcimon.screwbox.core.Vector
-
Creates a new Instance of
Vector
at the given coordinates. - $$(double, double, double, double) - Static method in class io.github.srcimon.screwbox.core.Bounds
-
Creates a new
Bounds
at the givenBounds.origin()
.
A
- A - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- acceleration - Variable in class io.github.srcimon.screwbox.core.environment.physics.MovementPathComponent
- acceleration - Variable in class io.github.srcimon.screwbox.core.environment.physics.MovementTargetComponent
- active() - Method in class io.github.srcimon.screwbox.core.utils.Latch
-
Returns the currently active one value.
- active() - Method in class io.github.srcimon.screwbox.core.utils.TrippleLatch
- activeCondition(Predicate<Engine>) - Method in class io.github.srcimon.screwbox.core.ui.UiMenuItem
-
Sets the condition that determins if the
UiMenuItem
will be shown as active. - activeItemIndex() - Method in class io.github.srcimon.screwbox.core.ui.UiMenu
- activePlaybackCount() - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Returns the count of currently active
playbacks
. - activePlaybackCount(Sound) - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Returns the count of currently playing instances of the given
Sound
. - activePlaybackCount(Supplier<Sound>) - Method in interface io.github.srcimon.screwbox.core.audio.Audio
- activePlaybacks() - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Returns a list of all currently active
playbacks
. - activeScene() - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
-
Returns the class of the current
Scene
. - activeSince - Variable in class io.github.srcimon.screwbox.core.environment.particles.ParticleBurstComponent
- add(double) - Method in class io.github.srcimon.screwbox.core.Percent
-
Returns a new instance with the sum of both values.
- add(double, double) - Method in class io.github.srcimon.screwbox.core.Vector
- add(int, int) - Method in class io.github.srcimon.screwbox.core.graphics.Offset
- add(long, Time.Unit) - Method in class io.github.srcimon.screwbox.core.Time
-
Add the given value measured as
Time.Unit
. - add(Duration) - Method in class io.github.srcimon.screwbox.core.Duration
- add(Component) - Method in class io.github.srcimon.screwbox.core.environment.Entity
- add(Component...) - Method in class io.github.srcimon.screwbox.core.environment.Entity
- add(Offset) - Method in class io.github.srcimon.screwbox.core.graphics.Offset
- add(Sprite, Offset, SpriteDrawOptions, int) - Method in class io.github.srcimon.screwbox.core.graphics.SpriteBatch
-
Adds a
Sprite
to the batch. - add(Scene...) - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
-
Adds one ore multiple
scenes
. - add(Vector) - Method in class io.github.srcimon.screwbox.core.Vector
- addCharacter(char, Sprite) - Method in class io.github.srcimon.screwbox.core.graphics.Pixelfont
- addCharacters(List<Character>, List<Sprite>) - Method in class io.github.srcimon.screwbox.core.graphics.Pixelfont
- addConeLight(Vector, Rotation, Rotation, double, Color) - Method in interface io.github.srcimon.screwbox.core.graphics.Light
-
Adds a directed light to the
World
. - addCustomized(T, Consumer<T>) - Method in class io.github.srcimon.screwbox.core.environment.Entity
- addEntities(Entity...) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- addEntities(List<Entity>) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- addEntity(int, Component...) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- addEntity(int, String, Component...) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- addEntity(Component...) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- addEntity(Entity) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- addEntity(String, Component...) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- addFullBrightnessArea(Bounds) - Method in interface io.github.srcimon.screwbox.core.graphics.Light
-
Adds an area to the
World
that is fully illuminated. - addGlow(Vector, double, Color) - Method in interface io.github.srcimon.screwbox.core.graphics.Light
-
Adds a glow effect to the given position.
- addIfNotPresent(Component) - Method in class io.github.srcimon.screwbox.core.environment.Entity
- addItem(String) - Method in class io.github.srcimon.screwbox.core.ui.UiMenu
- addItem(Function<Engine, String>) - Method in class io.github.srcimon.screwbox.core.ui.UiMenu
- addListener(AudioConfigurationListener) - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
- addListener(GraphicsConfigurationListener) - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
-
Adds a
GraphicsConfigurationListener
. - addMillis(long) - Method in class io.github.srcimon.screwbox.core.Time
- addOrReplace(Scene) - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
-
Adds a
Scene
. - addOrReplaceSystem(EntitySystem) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- addPointLight(Vector, double, Color) - Method in interface io.github.srcimon.screwbox.core.graphics.Light
-
Adds a pointlight to the
World
. - addSeconds(long) - Method in class io.github.srcimon.screwbox.core.Time
- addShadowCaster(Bounds) - Method in interface io.github.srcimon.screwbox.core.graphics.Light
-
Adds object that cast shadows.
- addShadowCaster(Bounds, boolean) - Method in interface io.github.srcimon.screwbox.core.graphics.Light
-
Adds object that cast shadows.
- addSpotLight(Vector, double, Color) - Method in interface io.github.srcimon.screwbox.core.graphics.Light
-
Adds a spotlight to the
World
. - addSystem(EntitySystem) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- addSystem(Order.SystemOrder, EntitySystem) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Adds an
EntitySystem
to theEnvironment
with the givenOrder.SystemOrder
(overwrites annotatedOrder.SystemOrder
if present. - addSystems(EntitySystem...) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- addTo(Time) - Method in class io.github.srcimon.screwbox.core.Duration
- addX(double) - Method in class io.github.srcimon.screwbox.core.Vector
- addX(int) - Method in class io.github.srcimon.screwbox.core.graphics.Offset
- addY(double) - Method in class io.github.srcimon.screwbox.core.Vector
- addY(int) - Method in class io.github.srcimon.screwbox.core.graphics.Offset
- alignCenter() - Method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Creates a new instance with
SystemTextDrawOptions.Alignment.CENTER
. - alignCenter() - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Creates a new instance with
TextDrawOptions.Alignment.CENTER
. - alignment() - Method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Returns the value of the
alignment
record component. - alignment() - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Returns the value of the
alignment
record component. - alignRight() - Method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Creates a new instance with
SystemTextDrawOptions.Alignment.RIGHT
. - alignRight() - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Creates a new instance with
TextDrawOptions.Alignment.RIGHT
. - ALL - Enum constant in enum class io.github.srcimon.screwbox.core.physics.Borders
- allFrames() - Method in class io.github.srcimon.screwbox.core.graphics.Sprite
- allIntersecting(List<Bounds>) - Method in class io.github.srcimon.screwbox.core.Bounds
- allowJumping - Variable in class io.github.srcimon.screwbox.core.environment.rendering.CameraTargetComponent
- allPixels() - Method in class io.github.srcimon.screwbox.core.graphics.Size
- ambientLight() - Method in interface io.github.srcimon.screwbox.core.graphics.Light
-
Returns the current ambient light brightness.
- animatedAssetFromFile(String, Size, Duration) - Static method in class io.github.srcimon.screwbox.core.graphics.Sprite
- animatedFromFile(String, Size, Duration) - Static method in class io.github.srcimon.screwbox.core.graphics.Sprite
- animateOpacity() - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Adds an
TweenOpacityComponent
to the particle to animate opacity. - animateOpacity(Percent, Percent) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Adds an
TweenOpacityComponent
to the particle to animate opacity. - animateScale(double, double) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Adds a
TweenScaleComponent
to a particle to animate the scale of the particle. - Animation - Interface in io.github.srcimon.screwbox.core.scenes
-
An animation used to leave a
Scene
. - ANTIALIASING - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.GraphicsConfigurationEvent.ConfigurationProperty
- applyOn(Line) - Method in class io.github.srcimon.screwbox.core.Rotation
- applyOn(Percent) - Method in enum class io.github.srcimon.screwbox.core.Ease
- Archetype - Class in io.github.srcimon.screwbox.core.environment
- area() - Method in class io.github.srcimon.screwbox.core.Grid
- AREA - Enum constant in enum class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent.SpawnMode
- AreaTriggerSystem - Class in io.github.srcimon.screwbox.core.environment.logic
- AreaTriggerSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.logic.AreaTriggerSystem
- areEffectsMuted() - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Returns
true
if effects are muted. - ARROW_DOWN - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- ARROW_LEFT - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- ARROW_RIGHT - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- ARROW_UP - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- arrowKeysMovement(double) - Method in interface io.github.srcimon.screwbox.core.keyboard.Keyboard
-
Returns the resulting
Vector
of a arrow-keys-movement scheme with the given length. - as(SourceImport.Converter<T>) - Method in class io.github.srcimon.screwbox.core.environment.SourceImport
- as(SourceImport.Converter<T>) - Method in class io.github.srcimon.screwbox.core.environment.SourceImport.ConditionalSourceImport
- as(SourceImport.Converter<T>) - Method in class io.github.srcimon.screwbox.core.environment.SourceImport.MatchingSourceImportWithKey
- asMusic() - Method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Sound
should be played as music usingAudioConfiguration.musicVolume()
. - AspectRatio - Enum Class in io.github.srcimon.screwbox.core.graphics
- asset() - Method in interface io.github.srcimon.screwbox.core.assets.AssetBundle
-
The
Asset
represented by each enum value. - asset() - Method in enum class io.github.srcimon.screwbox.core.assets.FontBundle
- asset() - Method in enum class io.github.srcimon.screwbox.core.audio.SoundBundle
- asset() - Method in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- asset() - Method in enum class io.github.srcimon.screwbox.core.particles.ParticleOptionsBundle
- asset(Supplier<T>) - Static method in class io.github.srcimon.screwbox.core.assets.Asset
-
Creates a new
Asset
. - Asset<T> - Class in io.github.srcimon.screwbox.core.assets
-
Asset
is used to wrap your i/o intense game resources like graphics and sounds when loaded for the first time. - AssetBundle<T> - Interface in io.github.srcimon.screwbox.core.assets
-
Marks enums (
FontBundle
) to serve as container forAssets
. - assetFromFile(String) - Static method in class io.github.srcimon.screwbox.core.audio.Sound
- assetFromFile(String) - Static method in class io.github.srcimon.screwbox.core.graphics.Sprite
- AssetLocation - Class in io.github.srcimon.screwbox.core.assets
-
Marks
Asset
positions in your game classes. - AssetLocation(AssetBundle<?>) - Constructor for class io.github.srcimon.screwbox.core.assets.AssetLocation
- assets() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Loads your game
Asset
s. - Assets - Interface in io.github.srcimon.screwbox.core.assets
- assignActive(T) - Method in class io.github.srcimon.screwbox.core.utils.Latch
-
Overwrites the currently active value.
- AStarAlgorithm - Class in io.github.srcimon.screwbox.core.physics
-
An implementation of the A* algorithm.
- AStarAlgorithm() - Constructor for class io.github.srcimon.screwbox.core.physics.AStarAlgorithm
- async() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Execute long running tasks within the
Engine
. - Async - Interface in io.github.srcimon.screwbox.core.async
-
Execute long running tasks within the
Engine
. - at(double, double) - Static method in class io.github.srcimon.screwbox.core.graphics.Offset
-
Creates a new
Offset
on the given coordinates. - at(int, int) - Static method in class io.github.srcimon.screwbox.core.graphics.Offset
-
Creates a new
Offset
on the given coordinates. - atNanos(long) - Static method in class io.github.srcimon.screwbox.core.Time
-
Returns the a new instance for a specific
Time
whithin the JVM. - atOrigin(double, double, double, double) - Static method in class io.github.srcimon.screwbox.core.Bounds
-
Creates a new
Bounds
at the givenBounds.origin()
. - atOrigin(Vector, double, double) - Static method in class io.github.srcimon.screwbox.core.Bounds
-
Creates a new
Bounds
at the givenBounds.origin()
. - atPosition(double, double, double, double) - Static method in class io.github.srcimon.screwbox.core.Bounds
-
Creates a new
Bounds
at the givenBounds.position()
. - atPosition(Vector, double, double) - Static method in class io.github.srcimon.screwbox.core.Bounds
-
Creates a new
Bounds
at the givenBounds.position()
. - AttachmentComponent - Class in io.github.srcimon.screwbox.core.environment.physics
- AttachmentComponent(int) - Constructor for class io.github.srcimon.screwbox.core.environment.physics.AttachmentComponent
- AttachmentComponent(int, Vector) - Constructor for class io.github.srcimon.screwbox.core.environment.physics.AttachmentComponent
- AttachmentSystem - Class in io.github.srcimon.screwbox.core.environment.physics
- AttachmentSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.AttachmentSystem
- audio() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Controls the audio playback of the
Engine
. - Audio - Interface in io.github.srcimon.screwbox.core.audio
-
Controls the audio playback of the
Engine
. - AudioConfiguration - Class in io.github.srcimon.screwbox.core.audio
-
Read and change the current
AudioConfiguration
. - AudioConfiguration() - Constructor for class io.github.srcimon.screwbox.core.audio.AudioConfiguration
- AudioConfigurationEvent - Class in io.github.srcimon.screwbox.core.audio
-
Occurs on any Change of the
AudioConfiguration
properties. - AudioConfigurationEvent(Object, AudioConfigurationEvent.ConfigurationProperty) - Constructor for class io.github.srcimon.screwbox.core.audio.AudioConfigurationEvent
- AudioConfigurationEvent.ConfigurationProperty - Enum Class in io.github.srcimon.screwbox.core.audio
-
The property of the
AudioConfiguration
changed. - AudioConfigurationListener - Interface in io.github.srcimon.screwbox.core.audio
-
Listener interface for receiving
AudioConfigurationEvent
s. - availableFonts() - Method in interface io.github.srcimon.screwbox.core.graphics.Graphics
-
Returns a list of all font names that can were found on the current system.
B
- b() - Method in class io.github.srcimon.screwbox.core.graphics.Color
-
Returns blue value of the
Color
. - B - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- BACKSPACE - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- backtrack(Grid.Node) - Method in class io.github.srcimon.screwbox.core.Grid
- backupInactive() - Method in class io.github.srcimon.screwbox.core.utils.TrippleLatch
- baseSpeed - Variable in class io.github.srcimon.screwbox.core.environment.physics.ChaoticMovementComponent
- baseSpeed(Vector) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Adds an initial movement to the particle.
- between(Time, Time) - Static method in class io.github.srcimon.screwbox.core.Duration
-
Creates a new instance with the duration between two given
Time
values. - between(Vector, Vector) - Static method in class io.github.srcimon.screwbox.core.Line
-
Creates a new instance of
Line
defined by the two endpoints. - BLACK - Static variable in class io.github.srcimon.screwbox.core.graphics.Color
-
The color black.
- block(int, int) - Method in class io.github.srcimon.screwbox.core.Grid
- block(Grid.Node) - Method in class io.github.srcimon.screwbox.core.Grid
- blockArea(Bounds) - Method in class io.github.srcimon.screwbox.core.Grid
- blockAt(Vector) - Method in class io.github.srcimon.screwbox.core.Grid
- blockedCount() - Method in class io.github.srcimon.screwbox.core.Grid
- blockedNeighbors(Grid.Node) - Method in class io.github.srcimon.screwbox.core.Grid
- BLUE - Static variable in class io.github.srcimon.screwbox.core.graphics.Color
-
The color blue.
- blur - Variable in class io.github.srcimon.screwbox.core.environment.rendering.ReflectionComponent
- bold() - Method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Creates a new instance with bold font.
- BOLDZILLA - Enum constant in enum class io.github.srcimon.screwbox.core.assets.FontBundle
- Borders - Enum Class in io.github.srcimon.screwbox.core.physics
- BOTTOM_SIDE - Enum constant in enum class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent.SpawnMode
- bottomLeft() - Method in class io.github.srcimon.screwbox.core.Bounds
- bottomRight() - Method in class io.github.srcimon.screwbox.core.Bounds
- bounce - Variable in class io.github.srcimon.screwbox.core.environment.physics.ColliderComponent
- bounds - Variable in class io.github.srcimon.screwbox.core.environment.core.TransformComponent
- bounds() - Method in class io.github.srcimon.screwbox.core.environment.Entity
- bounds() - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
-
Returns the current
ScreenBounds
. - bounds(Bounds) - Static method in class io.github.srcimon.screwbox.core.utils.Pixelperfect
- Bounds - Class in io.github.srcimon.screwbox.core
-
Bounds
represents a space in the 2d world. - BOX_STRIPED - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- burstInterval - Variable in class io.github.srcimon.screwbox.core.environment.particles.ParticleBurstComponent
C
- C - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- Cache<K,
V> - Class in io.github.srcimon.screwbox.core.utils - Cache() - Constructor for class io.github.srcimon.screwbox.core.utils.Cache
- calculateBounds(UiMenuItem, UiMenu, Screen) - Method in class io.github.srcimon.screwbox.core.ui.ScrollingUiLayouter
- calculateBounds(UiMenuItem, UiMenu, Screen) - Method in class io.github.srcimon.screwbox.core.ui.SimpleUiLayouter
- calculateBounds(UiMenuItem, UiMenu, Screen) - Method in interface io.github.srcimon.screwbox.core.ui.UiLayouter
- calculateBounds(UiMenuItem, UiMenu, Screen) - Method in class io.github.srcimon.screwbox.core.ui.WobblyUiLayouter
- camera() - Method in interface io.github.srcimon.screwbox.core.graphics.Graphics
-
Get information abound the
Camera
likeCamera.position()
. - Camera - Interface in io.github.srcimon.screwbox.core.graphics
-
Get information abound the
Camera
likeCamera.position()
. - cameraBounds - Variable in class io.github.srcimon.screwbox.core.environment.rendering.CameraBoundsComponent
- CameraBoundsComponent - Class in io.github.srcimon.screwbox.core.environment.rendering
- CameraBoundsComponent(Bounds) - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.CameraBoundsComponent
- CameraShakeOptions - Record Class in io.github.srcimon.screwbox.core.graphics
-
Configures the shake of the
Camera
. - CameraShakeOptions(Duration, double, double, Duration) - Constructor for record class io.github.srcimon.screwbox.core.graphics.CameraShakeOptions
-
Creates an instance of a
CameraShakeOptions
record class. - CameraSystem - Class in io.github.srcimon.screwbox.core.environment.rendering
- CameraSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.CameraSystem
- CameraTargetComponent - Class in io.github.srcimon.screwbox.core.environment.rendering
- CameraTargetComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.CameraTargetComponent
- CameraTargetComponent(double) - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.CameraTargetComponent
- castingHorizontal(double) - Method in class io.github.srcimon.screwbox.core.physics.RaycastBuilder
- castingTo(double, double) - Method in class io.github.srcimon.screwbox.core.physics.RaycastBuilder
- castingTo(Vector) - Method in class io.github.srcimon.screwbox.core.physics.RaycastBuilder
- castingVertical(double) - Method in class io.github.srcimon.screwbox.core.physics.RaycastBuilder
- castShadow() - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Adds a
ShadowCasterComponent
to the particle. - center - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenOrbitPositionComponent
- center() - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
-
Returns the center position of the
Screen
. - center() - Method in record class io.github.srcimon.screwbox.core.graphics.ScreenBounds
- center() - Method in class io.github.srcimon.screwbox.core.graphics.Size
- CENTER - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions.Alignment
- CENTER - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.TextDrawOptions.Alignment
- changedProperty() - Method in class io.github.srcimon.screwbox.core.audio.AudioConfigurationEvent
- changedProperty() - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfigurationEvent
-
Returns the property of the
GraphicsConfiguration
that has been changed. - changeZoomBy(double) - Method in interface io.github.srcimon.screwbox.core.graphics.Camera
-
Updates the camera zoom nearly by the specified value.
- chaoticMovement(double, Duration) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Adds chaotic movement to the particle.
- chaoticMovement(double, Duration, Vector) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Adds chaotic movement to the particle.
- ChaoticMovementComponent - Class in io.github.srcimon.screwbox.core.environment.physics
-
Adds chaotic movement to an
Entity
. - ChaoticMovementComponent(double, Duration) - Constructor for class io.github.srcimon.screwbox.core.environment.physics.ChaoticMovementComponent
- ChaoticMovementComponent(double, Duration, Vector) - Constructor for class io.github.srcimon.screwbox.core.environment.physics.ChaoticMovementComponent
- ChaoticMovementSystem - Class in io.github.srcimon.screwbox.core.environment.physics
-
Enables chaotic movement behaviour for all
Entity
s havingPhysicsComponent
andChaoticMovementComponent
. - ChaoticMovementSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.ChaoticMovementSystem
- characterCount() - Method in class io.github.srcimon.screwbox.core.graphics.Pixelfont
-
Returns the current count of different characters in the
Pixelfont
. - charactersPerLine() - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Returns the value of the
charactersPerLine
record component. - charactersPerLine(int) - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Sets a maximum line length.
- checkingBorders(Borders) - Method in class io.github.srcimon.screwbox.core.physics.RaycastBuilder
- checkingFor(Archetype) - Method in class io.github.srcimon.screwbox.core.physics.RaycastBuilder
- checkingFor(Archetype) - Method in class io.github.srcimon.screwbox.core.physics.SelectEntityBuilder
- CircleDrawOptions - Record Class in io.github.srcimon.screwbox.core.graphics
-
Customize the drawing of circles.
- CircleDrawOptions(CircleDrawOptions.Style, Color, int) - Constructor for record class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions
-
Creates an instance of a
CircleDrawOptions
record class. - CircleDrawOptions.Style - Enum Class in io.github.srcimon.screwbox.core.graphics
-
The style used to draw.
- CirclesAnimation - Class in io.github.srcimon.screwbox.core.scenes.animations
-
Fills the
Screen
with multiple circles growin in size. - CirclesAnimation() - Constructor for class io.github.srcimon.screwbox.core.scenes.animations.CirclesAnimation
- classPathElements() - Static method in class io.github.srcimon.screwbox.core.utils.Resources
-
Returns all element names in the classpath.
- clear() - Method in class io.github.srcimon.screwbox.core.utils.Cache
- clear(K) - Method in class io.github.srcimon.screwbox.core.utils.Cache
- clearedInstance() - Method in class io.github.srcimon.screwbox.core.Grid
-
Returns a new instance without any blocked
Grid.Node
s. - clearEntities() - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Removes all current
Entity
s. - clockwiseRotationsPerSecond - Variable in class io.github.srcimon.screwbox.core.environment.rendering.FixedRotationComponent
- close() - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Closes the
Window
. - closeMenu() - Method in interface io.github.srcimon.screwbox.core.ui.Ui
-
Closes the current open
UiMenu
. - code() - Method in enum class io.github.srcimon.screwbox.core.keyboard.Key
-
The corresponding key code of the key.
- collidedEntities - Variable in class io.github.srcimon.screwbox.core.environment.physics.CollisionDetectionComponent
- ColliderComponent - Class in io.github.srcimon.screwbox.core.environment.physics
- ColliderComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.ColliderComponent
- ColliderComponent(double) - Constructor for class io.github.srcimon.screwbox.core.environment.physics.ColliderComponent
- ColliderComponent(double, Percent) - Constructor for class io.github.srcimon.screwbox.core.environment.physics.ColliderComponent
- ColliderComponent(double, Percent, boolean) - Constructor for class io.github.srcimon.screwbox.core.environment.physics.ColliderComponent
- CollisionDetectionComponent - Class in io.github.srcimon.screwbox.core.environment.physics
- CollisionDetectionComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.CollisionDetectionComponent
- CollisionDetectionSystem - Class in io.github.srcimon.screwbox.core.environment.physics
- CollisionDetectionSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.CollisionDetectionSystem
- color - Variable in class io.github.srcimon.screwbox.core.environment.light.ConeLightComponent
- color - Variable in class io.github.srcimon.screwbox.core.environment.light.GlowComponent
- color - Variable in class io.github.srcimon.screwbox.core.environment.light.PointLightComponent
- color - Variable in class io.github.srcimon.screwbox.core.environment.light.SpotLightComponent
- color() - Method in record class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions
-
Returns the value of the
color
record component. - color() - Method in record class io.github.srcimon.screwbox.core.graphics.LineDrawOptions
-
Returns the value of the
color
record component. - color() - Method in record class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions
-
Returns the value of the
color
record component. - color() - Method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Returns the value of the
color
record component. - color(Color) - Static method in record class io.github.srcimon.screwbox.core.graphics.LineDrawOptions
-
Returns new instance with new
LineDrawOptions.color()
. - color(Color) - Method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Creates a new instance with given
Color
. - Color - Class in io.github.srcimon.screwbox.core.graphics
-
Used to store color information used in
Graphics
. - colorAt(int, int) - Method in class io.github.srcimon.screwbox.core.graphics.Frame
-
Returns the
Color
of the pixel at the given position. - colorAt(Offset) - Method in class io.github.srcimon.screwbox.core.graphics.Frame
-
Returns the
Color
of the pixel at the given position. - ColorFadeAnimation - Class in io.github.srcimon.screwbox.core.scenes.animations
- ColorFadeAnimation() - Constructor for class io.github.srcimon.screwbox.core.scenes.animations.ColorFadeAnimation
-
Fades to
Color.BLACK
. - ColorFadeAnimation(Color) - Constructor for class io.github.srcimon.screwbox.core.scenes.animations.ColorFadeAnimation
-
Fadeds to the specified
Color
. - colors() - Method in class io.github.srcimon.screwbox.core.graphics.Frame
- COMMA - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- compareTo(Size) - Method in class io.github.srcimon.screwbox.core.graphics.Size
- compareTo(SpriteBatch.SpriteBatchEntry) - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteBatch.SpriteBatchEntry
- compareTo(Line) - Method in class io.github.srcimon.screwbox.core.Line
- compareTo(Rotation) - Method in class io.github.srcimon.screwbox.core.Rotation
- completedPlaybackCount() - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Returns the total number of finished playbacks.
- Component - Interface in io.github.srcimon.screwbox.core.environment
- componentAdded(EntityEvent) - Method in interface io.github.srcimon.screwbox.core.environment.EntityListener
- componentCount() - Method in class io.github.srcimon.screwbox.core.environment.Entity
-
Returns the count of all present
components
attached to thisEntity
. - componentRemoved(EntityEvent) - Method in interface io.github.srcimon.screwbox.core.environment.EntityListener
- cone - Variable in class io.github.srcimon.screwbox.core.environment.light.ConeLightComponent
- ConeLightComponent - Class in io.github.srcimon.screwbox.core.environment.light
- ConeLightComponent(Rotation, Rotation, double) - Constructor for class io.github.srcimon.screwbox.core.environment.light.ConeLightComponent
- ConeLightComponent(Rotation, Rotation, double, Color) - Constructor for class io.github.srcimon.screwbox.core.environment.light.ConeLightComponent
- CONFETTI - Enum constant in enum class io.github.srcimon.screwbox.core.particles.ParticleOptionsBundle
- configuration() - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Read and change the current
AudioConfiguration
. - configuration() - Method in interface io.github.srcimon.screwbox.core.graphics.Graphics
-
Read and change the current
GraphicsConfiguration
. - configurationChanged(AudioConfigurationEvent) - Method in interface io.github.srcimon.screwbox.core.audio.AudioConfigurationListener
-
invoked when a property of the
AudioConfiguration
is changed. - configurationChanged(GraphicsConfigurationEvent) - Method in interface io.github.srcimon.screwbox.core.graphics.GraphicsConfigurationListener
-
invoked when a property of the
GraphicsConfiguration
is changed. - ConsoleLoggingAdapter - Class in io.github.srcimon.screwbox.core.log
- ConsoleLoggingAdapter() - Constructor for class io.github.srcimon.screwbox.core.log.ConsoleLoggingAdapter
- contains(Bounds) - Method in class io.github.srcimon.screwbox.core.Bounds
-
Returns
true
if the otherBounds
is contained by this instance. - contains(Archetype) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- contains(Offset) - Method in record class io.github.srcimon.screwbox.core.graphics.ScreenBounds
- contains(Vector) - Method in class io.github.srcimon.screwbox.core.Bounds
-
Checks if the given position is within this
Bounds
. - contains(Class<? extends Component>) - Method in class io.github.srcimon.screwbox.core.environment.Archetype
- containsDuplicates(List<T>) - Static method in class io.github.srcimon.screwbox.core.utils.ListUtil
-
Returns
true
if the givenList
contains duplicate entries. - content() - Method in class io.github.srcimon.screwbox.core.audio.Sound
-
The binary sound data.
- CONTROL - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- convert(T) - Method in interface io.github.srcimon.screwbox.core.environment.SourceImport.Converter
- createEngine() - Static method in class io.github.srcimon.screwbox.core.ScrewBox
-
Creates an
Engine
instance. - createEngine(String) - Static method in class io.github.srcimon.screwbox.core.ScrewBox
-
Creates an
Engine
instance. - cropHorizontal() - Method in class io.github.srcimon.screwbox.core.graphics.Frame
-
Returns a new instance of a
Frame
without transparent pixels on the left and the right side. - cropHorizontal() - Method in class io.github.srcimon.screwbox.core.graphics.Sprite
-
Returns a version of this
Sprite
where the transparent space on the left and the right side were reduced to a minimum. - currentMenu() - Method in interface io.github.srcimon.screwbox.core.ui.Ui
-
Returns the current
UiMenu
. - currentResolution() - Method in interface io.github.srcimon.screwbox.core.graphics.Graphics
-
Returns the current screen resolution.
- CursorAttachmentComponent - Class in io.github.srcimon.screwbox.core.environment.physics
-
Moves the
Entity
towards the current mouse cursor position. - CursorAttachmentComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.CursorAttachmentComponent
- CursorAttachmentComponent(Vector) - Constructor for class io.github.srcimon.screwbox.core.environment.physics.CursorAttachmentComponent
- CursorAttachmentSystem - Class in io.github.srcimon.screwbox.core.environment.physics
-
Moves all
entities
having aCursorAttachmentComponent
to the current mouse cursor position. - CursorAttachmentSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.CursorAttachmentSystem
- custom() - Static method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
- customColor(Color) - Method in enum class io.github.srcimon.screwbox.core.assets.FontBundle
- customize(String, ParticleOptions.ParticleModifiers) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Add special customization to the
ParticleOptions
that is not already available viaParticleOptions
methods.
D
- D - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- DARK_BLUE - Static variable in class io.github.srcimon.screwbox.core.graphics.Color
-
The color dark blue.
- DARK_GREEN - Static variable in class io.github.srcimon.screwbox.core.graphics.Color
-
The color dark green.
- debug(String) - Method in interface io.github.srcimon.screwbox.core.log.Log
-
Logs a message using
LogLevel.DEBUG
. - DEBUG - Enum constant in enum class io.github.srcimon.screwbox.core.log.LogLevel
-
Used for verbose output.
- DEFAULT - Enum constant in enum class io.github.srcimon.screwbox.core.window.MouseCursor
-
The default cursor of the current operation system.
- DefaultLoadingScene - Class in io.github.srcimon.screwbox.core.scenes
- DefaultLoadingScene() - Constructor for class io.github.srcimon.screwbox.core.scenes.DefaultLoadingScene
- DefaultScene - Class in io.github.srcimon.screwbox.core.scenes
- DefaultScene() - Constructor for class io.github.srcimon.screwbox.core.scenes.DefaultScene
- definedBy(Offset, Offset) - Static method in class io.github.srcimon.screwbox.core.graphics.Size
-
Returns a new instance of
Size
defined by two edges. - degrees() - Method in class io.github.srcimon.screwbox.core.Rotation
-
Returns the degrees value of this
Rotation
. - degrees(double) - Static method in class io.github.srcimon.screwbox.core.Rotation
-
Creates a new
Rotation
by the givenRotation.degrees()
. - deleteSavegameFile(String) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Deletes the savegame with the given name.
- delta() - Method in interface io.github.srcimon.screwbox.core.loop.Loop
-
Returns an abstraction of delta time between two frames.
- delta(double) - Method in interface io.github.srcimon.screwbox.core.loop.Loop
-
Same as
Loop.delta()
but multiplies the result by the given factor. - DijkstraAlgorithm - Class in io.github.srcimon.screwbox.core.physics
-
An implementation of the Dijkstra algorithm.
- DijkstraAlgorithm() - Constructor for class io.github.srcimon.screwbox.core.physics.DijkstraAlgorithm
- direction - Variable in class io.github.srcimon.screwbox.core.environment.light.ConeLightComponent
- disable() - Method in interface io.github.srcimon.screwbox.core.log.Log
-
Turns off logging completely.
- disabled() - Method in class io.github.srcimon.screwbox.core.ui.UiMenuItem
-
Marks
UiMenuItem
als always disabled. - disableLogging() - Method in interface io.github.srcimon.screwbox.core.assets.Assets
-
Disables logging of loading results.
- distance - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenOrbitPositionComponent
- distance(Grid.Node) - Method in record class io.github.srcimon.screwbox.core.Grid.Node
- distanceTo(Vector) - Method in class io.github.srcimon.screwbox.core.Vector
-
Calculates the distance between this and the other
Vector
. - DOT - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- DOT_BLUE - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- DOT_RED - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- DOT_YELLOW - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- downKeys() - Method in interface io.github.srcimon.screwbox.core.keyboard.Keyboard
-
Returns all currently down
Key
s. - drag() - Method in interface io.github.srcimon.screwbox.core.mouse.Mouse
-
Returns the drag movement of the mouse since the last frame.
- draw(Screen, Percent) - Method in interface io.github.srcimon.screwbox.core.scenes.Animation
-
Draw on the
Screen
dependent of the leaving or entering progress. - draw(Screen, Percent) - Method in class io.github.srcimon.screwbox.core.scenes.animations.CirclesAnimation
- draw(Screen, Percent) - Method in class io.github.srcimon.screwbox.core.scenes.animations.ColorFadeAnimation
- draw(Screen, Percent) - Method in class io.github.srcimon.screwbox.core.scenes.animations.SpriteFadeAnimation
- drawCircle(Offset, int, CircleDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
-
Draws a circle on the
Screen
using the given position andCircleDrawOptions
. - drawCircle(Vector, double, CircleDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.World
-
Draw a circle on the
World
usingCircleDrawOptions
. - drawLine(Offset, Offset, LineDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
- drawLine(Line, LineDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.World
- drawLine(Vector, Vector, LineDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.World
- drawOrder - Variable in class io.github.srcimon.screwbox.core.environment.rendering.ReflectionComponent
- drawOrder - Variable in class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- drawOrder() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteBatch.SpriteBatchEntry
-
Returns the value of the
drawOrder
record component. - drawOrder(int) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Sets the draw order of the particle when drawn.
- drawRectangle(Bounds, RectangleDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.World
-
Draw a rectangle on the
World
usingRectangleDrawOptions
. - drawRectangle(Offset, Size, RectangleDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
-
Draws a rectangle on the screen using the given
ScreenBounds
andRectangleDrawOptions
. - drawRectangle(ScreenBounds, RectangleDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
- drawSprite(Sprite, Offset, SpriteDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
- drawSprite(Sprite, Vector, SpriteDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.World
- drawSprite(Supplier<Sprite>, Offset, SpriteDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
- drawSprite(Supplier<Sprite>, Vector, SpriteDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.World
- drawSpriteBatch(SpriteBatch) - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
-
Draws multiple sorted
sprites
at once. - drawText(Offset, String, SystemTextDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
-
Draws text on the
Screen
usingSystemTextDrawOptions
. - drawText(Offset, String, TextDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
- drawText(Vector, String, SystemTextDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.World
-
Draws text on the
World
usingSystemTextDrawOptions
. - drawText(Vector, String, TextDrawOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.World
- duration - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenComponent
- duration() - Method in class io.github.srcimon.screwbox.core.audio.Sound
- duration() - Method in record class io.github.srcimon.screwbox.core.graphics.CameraShakeOptions
-
Returns the value of the
duration
record component. - duration() - Method in class io.github.srcimon.screwbox.core.graphics.Frame
- duration() - Method in class io.github.srcimon.screwbox.core.graphics.Sprite
- Duration - Class in io.github.srcimon.screwbox.core
E
- E - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- ease(Ease) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Sets the
Ease
for animation. - ease(Ease) - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
- Ease - Enum Class in io.github.srcimon.screwbox.core
-
Configures the direction and the progress of a value change.
- EFFECTS_VOLUME - Enum constant in enum class io.github.srcimon.screwbox.core.audio.AudioConfigurationEvent.ConfigurationProperty
-
AudioConfiguration.effectVolume()
has been changed. - effectVolume() - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Returns the current volume for effects.
- ELECTRICITY_SPARCLE - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- emptyWhenNull(List<T>) - Static method in class io.github.srcimon.screwbox.core.utils.ListUtil
- enable() - Method in interface io.github.srcimon.screwbox.core.log.Log
-
Turns on logging again.
- enableAllFeatures() - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Adds all systems including particle effects, tweening, logic, rendering, physics and light (so beware, it might get a little dark if you forget to add some lights).
- enableAudio() - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Adds system for playing sounds.
- enableLight() - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Adds systems for light rendering.
- enableLogging() - Method in interface io.github.srcimon.screwbox.core.assets.Assets
-
Activates logging of loading results.
- enableLogic() - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Adds systems needed for stateful entities and area triggers.
- enableParticles() - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Adds systems for particle effects.
- enablePhysics() - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Adds all systems needed for physics support in this
Environment
. - enableRendering() - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Adds systems needed for rendering
Sprite
s. - enableTweening() - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Adds systems needed for tweening.
- Engine - Interface in io.github.srcimon.screwbox.core
-
This is the central point of controlling the ScrewBox-Engine.
- enter(Entity, Engine) - Method in interface io.github.srcimon.screwbox.core.environment.logic.EntityState
- ENTER - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- entities() - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Returns all
Entity
s currently attached. - entity() - Method in class io.github.srcimon.screwbox.core.environment.EntityEvent
- Entity - Class in io.github.srcimon.screwbox.core.environment
- Entity() - Constructor for class io.github.srcimon.screwbox.core.environment.Entity
- Entity(Integer) - Constructor for class io.github.srcimon.screwbox.core.environment.Entity
- Entity(Integer, String) - Constructor for class io.github.srcimon.screwbox.core.environment.Entity
- Entity(String) - Constructor for class io.github.srcimon.screwbox.core.environment.Entity
- entityCount() - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Returns the total count of entities in this environment.
- entityCount(Archetype) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Returns the count of entities matching the given
Archetype
in this environment. - EntityEvent - Class in io.github.srcimon.screwbox.core.environment
- EntityEvent(Entity) - Constructor for class io.github.srcimon.screwbox.core.environment.EntityEvent
- EntityListener - Interface in io.github.srcimon.screwbox.core.environment
-
Listener interface for receiving
EntityEvent
s. - EntityState - Interface in io.github.srcimon.screwbox.core.environment.logic
- EntitySystem - Interface in io.github.srcimon.screwbox.core.environment
-
EntitySystems implement the game logic.
- entriesInOrder() - Method in class io.github.srcimon.screwbox.core.graphics.SpriteBatch
-
Returns all
entries
in order. - environment() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Returns the games
Entity
management system (Environment
). - Environment - Interface in io.github.srcimon.screwbox.core.environment
-
The
Environment
manages allEnvironment.entities()
and allEnvironment.systems()
that are contained in aScene
. - environmentOf(Class<? extends Scene>) - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
-
Returns the
Environment
of the specifiedScene
. - equals(Object) - Method in record class io.github.srcimon.screwbox.core.audio.Playback
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class io.github.srcimon.screwbox.core.Bounds
- equals(Object) - Method in class io.github.srcimon.screwbox.core.Duration
- equals(Object) - Method in class io.github.srcimon.screwbox.core.environment.Archetype
- equals(Object) - Method in record class io.github.srcimon.screwbox.core.graphics.CameraShakeOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class io.github.srcimon.screwbox.core.graphics.Color
- equals(Object) - Method in record class io.github.srcimon.screwbox.core.graphics.LineDrawOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class io.github.srcimon.screwbox.core.graphics.Offset
- equals(Object) - Method in record class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.srcimon.screwbox.core.graphics.ScreenBounds
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class io.github.srcimon.screwbox.core.graphics.Size
- equals(Object) - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteBatch.SpriteBatchEntry
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteFillOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.srcimon.screwbox.core.Grid.Node
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class io.github.srcimon.screwbox.core.Line
- equals(Object) - Method in class io.github.srcimon.screwbox.core.Percent
- equals(Object) - Method in class io.github.srcimon.screwbox.core.Rotation
- equals(Object) - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class io.github.srcimon.screwbox.core.Time
- equals(Object) - Method in class io.github.srcimon.screwbox.core.Vector
- equals(Object) - Method in record class io.github.srcimon.screwbox.core.window.FilesDropedOnWindow
-
Indicates whether some other object is "equal to" this one.
- error(String) - Method in interface io.github.srcimon.screwbox.core.log.Log
-
Logs a message using
LogLevel.ERROR
. - error(Throwable) - Method in interface io.github.srcimon.screwbox.core.log.Log
-
Logs a message using
LogLevel.ERROR
containing the stacktrace of the givenThrowable
. - ERROR - Enum constant in enum class io.github.srcimon.screwbox.core.log.LogLevel
-
Used when an error occured that didn't kill the engine.
- ESCAPE - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- everyMinute() - Static method in class io.github.srcimon.screwbox.core.utils.Sheduler
-
Creates a new
Sheduler
with one minute interval. - everySecond() - Static method in class io.github.srcimon.screwbox.core.utils.Sheduler
-
Creates a new
Sheduler
with one second interval. - exists(Class<? extends Scene>) - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
-
Returns
true
if the scene of the specified class is present. - exit(Entity, Engine) - Method in interface io.github.srcimon.screwbox.core.environment.logic.EntityState
- expand(double) - Method in class io.github.srcimon.screwbox.core.Bounds
- expand(int) - Method in class io.github.srcimon.screwbox.core.graphics.Size
-
Expands the size by the specified value.
- expandTop(double) - Method in class io.github.srcimon.screwbox.core.Bounds
- EXPLOSION - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- EXPLOSION - Enum constant in enum class io.github.srcimon.screwbox.core.particles.ParticleOptionsBundle
- extents() - Method in class io.github.srcimon.screwbox.core.Bounds
- extractArea(Offset, Size) - Method in class io.github.srcimon.screwbox.core.graphics.Frame
- extractFrom(Bounds) - Method in enum class io.github.srcimon.screwbox.core.physics.Borders
F
- F - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- F1 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- F10 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- F11 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- F12 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- F2 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- F3 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- F4 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- F5 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- F6 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- F7 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- F8 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- F9 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- fading(Color) - Static method in record class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions
-
Draw a fading circle with the given
Color
. - FADING - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions.Style
-
Draws with
RectangleDrawOptions.color()
fading out from center of the circle. - FALLING_LEAVES - Enum constant in enum class io.github.srcimon.screwbox.core.particles.ParticleOptionsBundle
- fetchAll(Archetype) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- fetchAllHaving(Class<? extends Component>) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- fetchAllHaving(Class<? extends Component>, Class<? extends Component>) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- fetchById(int) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Fetches an
Entity
byEntity.id()
. - fetchSingleton(Archetype) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- fetchSingleton(Class<? extends Component>) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Returns an
Entity
that is expected to be the onlyEntity
in theEnvironment
that contains the given singletonComponent
. - fetchSingletonComponent(Class<T>) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Returns a
Component
that is expected not have more than on instance in theEnvironment
. - files() - Method in record class io.github.srcimon.screwbox.core.window.FilesDropedOnWindow
-
Returns the value of the
files
record component. - filesDropedOnWindow() - Method in interface io.github.srcimon.screwbox.core.window.Window
- FilesDropedOnWindow - Record Class in io.github.srcimon.screwbox.core.window
- FilesDropedOnWindow(List<File>, Offset) - Constructor for record class io.github.srcimon.screwbox.core.window.FilesDropedOnWindow
-
Creates an instance of a
FilesDropedOnWindow
record class. - filled(Color) - Static method in record class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions
-
Draw a filled circle with the given
Color
. - filled(Color) - Static method in record class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions
-
Draw a filled rectangle with the given
Color
. - FILLED - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions.Style
-
Draws a filled form.
- FILLED - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions.Style
-
Draws a filled form.
- fillWith(Color) - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
- fillWith(Sprite, SpriteFillOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
- findClassesInPackage(String) - Static method in class io.github.srcimon.screwbox.core.utils.Reflections
-
Returns a list of all
Class
es in the given Package. - findHits() - Method in class io.github.srcimon.screwbox.core.physics.Raycast
- findPath(Grid, Grid.Node, Grid.Node) - Method in class io.github.srcimon.screwbox.core.physics.AStarAlgorithm
- findPath(Grid, Grid.Node, Grid.Node) - Method in class io.github.srcimon.screwbox.core.physics.DijkstraAlgorithm
- findPath(Grid, Grid.Node, Grid.Node) - Method in interface io.github.srcimon.screwbox.core.physics.PathfindingAlgorithm
- findPath(Vector, Vector) - Method in interface io.github.srcimon.screwbox.core.physics.Physics
-
Finds a
Path
between specified start and end position. - findPath(Vector, Vector, Grid) - Method in interface io.github.srcimon.screwbox.core.physics.Physics
-
Finds a
Path
between specified start and end position. - FIRE - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- firstNode() - Method in class io.github.srcimon.screwbox.core.Path
- fixedInterval(Duration) - Static method in class io.github.srcimon.screwbox.core.utils.Noise
- FixedRotationComponent - Class in io.github.srcimon.screwbox.core.environment.rendering
-
Applies a continuous rotation to the
Sprite
of anRenderComponent
. - FixedRotationComponent(double) - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.FixedRotationComponent
- FixedRotationSystem - Class in io.github.srcimon.screwbox.core.environment.rendering
- FixedRotationSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.FixedRotationSystem
- FLICKER - Enum constant in enum class io.github.srcimon.screwbox.core.Ease
-
Flickering effect.
- flipHorizontal(boolean) - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Creates a new instance with updated
SpriteDrawOptions.isFlipHorizontal()
. - FlipSpriteComponent - Class in io.github.srcimon.screwbox.core.environment.rendering
- FlipSpriteComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.FlipSpriteComponent
- FlipSpriteSystem - Class in io.github.srcimon.screwbox.core.environment.rendering
- FlipSpriteSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.FlipSpriteSystem
- flipVertical(boolean) - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Creates a new instance with updated
SpriteDrawOptions.isFlipVertical()
. - focus() - Method in interface io.github.srcimon.screwbox.core.graphics.Camera
-
Returns the focus of the
Camera
. - followSpeed - Variable in class io.github.srcimon.screwbox.core.environment.rendering.CameraTargetComponent
- font() - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Returns the value of the
font
record component. - font(Pixelfont) - Static method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Creates a new instance with the given
Pixelfont
. - font(Supplier<Pixelfont>) - Static method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Creates a new instance with the given
Pixelfont
. - FontBundle - Enum Class in io.github.srcimon.screwbox.core.assets
- fontName() - Method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Returns the value of the
fontName
record component. - force - Variable in class io.github.srcimon.screwbox.core.environment.physics.MagnetComponent
- fps() - Method in interface io.github.srcimon.screwbox.core.loop.Loop
-
Returns the current count of frames per second.
- frame(int) - Method in class io.github.srcimon.screwbox.core.graphics.Sprite
-
Returns the frame with the given number, starting with 0.
- frame(Time) - Method in class io.github.srcimon.screwbox.core.graphics.Sprite
- Frame - Class in io.github.srcimon.screwbox.core.graphics
-
Represents a single image within a
Sprite
. - Frame(Image, Duration) - Constructor for class io.github.srcimon.screwbox.core.graphics.Frame
- frameCount() - Method in class io.github.srcimon.screwbox.core.graphics.Sprite
- frameNumber() - Method in interface io.github.srcimon.screwbox.core.loop.Loop
-
Returns the number of the current frame (Each iteration of the game loop is called frame).
- freeArea(Bounds) - Method in class io.github.srcimon.screwbox.core.Grid
- freeAt(Vector) - Method in class io.github.srcimon.screwbox.core.Grid
- freeCount() - Method in class io.github.srcimon.screwbox.core.Grid
- freshInstance() - Method in class io.github.srcimon.screwbox.core.graphics.Sprite
- friction - Variable in class io.github.srcimon.screwbox.core.environment.physics.ColliderComponent
- from - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenLightComponent
- from - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenOpacityComponent
- from - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenPositionComponent
- from - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenScaleComponent
- from() - Method in class io.github.srcimon.screwbox.core.Line
-
The starting point of the
Line
. - fromCode(int) - Static method in enum class io.github.srcimon.screwbox.core.keyboard.Key
-
Returns the
Key
with the given code. - fromFile(String) - Static method in class io.github.srcimon.screwbox.core.audio.Sound
-
Creates a new
Sound
from file. - fromFile(String) - Static method in class io.github.srcimon.screwbox.core.graphics.Frame
-
Returns a
Frame
created from a file. - fromFile(String) - Static method in class io.github.srcimon.screwbox.core.graphics.Sprite
- fromImage(Image) - Static method in class io.github.srcimon.screwbox.core.graphics.Frame
- fromImage(Image) - Static method in class io.github.srcimon.screwbox.core.graphics.Sprite
- fromSoundData(byte[]) - Static method in class io.github.srcimon.screwbox.core.audio.Sound
-
Creates a new
Sound
from audio data.
G
- g() - Method in class io.github.srcimon.screwbox.core.graphics.Color
-
Returns green value of the
Color
. - G - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- GeometryUtil - Class in io.github.srcimon.screwbox.core.utils
- get() - Method in class io.github.srcimon.screwbox.core.assets.Asset
-
Retrieves the
Asset
actual resource. - get() - Method in interface io.github.srcimon.screwbox.core.assets.AssetBundle
-
Getter to get the
Asset
content directly. - get(Class<T>) - Method in class io.github.srcimon.screwbox.core.environment.Entity
- get(K) - Method in class io.github.srcimon.screwbox.core.utils.Cache
- get(K) - Method in class io.github.srcimon.screwbox.core.utils.TimeoutCache
- getAll() - Method in class io.github.srcimon.screwbox.core.environment.Entity
-
Returns all
components
attached to thisEntity
. - getComponentClasses() - Method in class io.github.srcimon.screwbox.core.environment.Entity
- getCustomColor(Color) - Method in enum class io.github.srcimon.screwbox.core.assets.FontBundle
-
Returns a colored version of the
Pixelfont
. - getOrElse(K, Supplier<V>) - Method in class io.github.srcimon.screwbox.core.utils.Cache
- GlowComponent - Class in io.github.srcimon.screwbox.core.environment.light
- GlowComponent(double, Color) - Constructor for class io.github.srcimon.screwbox.core.environment.light.GlowComponent
- graphics() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Provides access to the
Graphics
, which has methods for drawing on screen, changing theGraphicsConfiguration
, to update and read theGraphics.camera()
. - Graphics - Interface in io.github.srcimon.screwbox.core.graphics
-
Gives access to all graphics related configuration and operations.
- GraphicsConfiguration - Class in io.github.srcimon.screwbox.core.graphics
- GraphicsConfiguration() - Constructor for class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
- GraphicsConfigurationEvent - Class in io.github.srcimon.screwbox.core.graphics
-
Occurs on any Change of the
GraphicsConfiguration
properties. - GraphicsConfigurationEvent(Object, GraphicsConfigurationEvent.ConfigurationProperty) - Constructor for class io.github.srcimon.screwbox.core.graphics.GraphicsConfigurationEvent
- GraphicsConfigurationEvent.ConfigurationProperty - Enum Class in io.github.srcimon.screwbox.core.graphics
- GraphicsConfigurationListener - Interface in io.github.srcimon.screwbox.core.graphics
-
Listener interface for receiving
GraphicsConfigurationEvent
s. - gravity - Variable in class io.github.srcimon.screwbox.core.environment.physics.GravityComponent
- GravityComponent - Class in io.github.srcimon.screwbox.core.environment.physics
- GravityComponent(Vector) - Constructor for class io.github.srcimon.screwbox.core.environment.physics.GravityComponent
- gravityModifier - Variable in class io.github.srcimon.screwbox.core.environment.physics.PhysicsComponent
- GravitySystem - Class in io.github.srcimon.screwbox.core.environment.physics
- GravitySystem() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.GravitySystem
- GREEN - Static variable in class io.github.srcimon.screwbox.core.graphics.Color
-
The color green.
- GREY - Static variable in class io.github.srcimon.screwbox.core.graphics.Color
-
The color grey.
- grid() - Method in interface io.github.srcimon.screwbox.core.physics.Physics
-
Returns the
Grid
that is currently used to snap objects and find paths. - Grid - Class in io.github.srcimon.screwbox.core
-
A
Grid
to raster your game world. - Grid(Bounds, int) - Constructor for class io.github.srcimon.screwbox.core.Grid
- Grid(Bounds, int, boolean) - Constructor for class io.github.srcimon.screwbox.core.Grid
- Grid.Node - Record Class in io.github.srcimon.screwbox.core
-
A node in (or out of) the
Grid
. - gridSize - Variable in class io.github.srcimon.screwbox.core.environment.physics.PhysicsGridConfigurationComponent
- gridSize() - Method in class io.github.srcimon.screwbox.core.Grid
H
- H - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- half() - Static method in class io.github.srcimon.screwbox.core.Percent
-
Returns 50 percent.
- hasActivePlaybacks(Sound) - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Returns
true
of there is any active playing instances of the givenSound
. - hasActivePlaybacks(Supplier<Sound>) - Method in interface io.github.srcimon.screwbox.core.audio.Audio
- hasActiveTasks(Object) - Method in interface io.github.srcimon.screwbox.core.async.Async
-
Returns true if there are any active tasks running in the given context.
- hasCharacter(char) - Method in class io.github.srcimon.screwbox.core.graphics.Pixelfont
-
Checks if the given character is contained in the
Pixelfont
. - hasComponent(Class<? extends Component>) - Method in class io.github.srcimon.screwbox.core.environment.Entity
- hasFocus() - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Returns true if the
Window
currently has focus. - hashCode() - Method in record class io.github.srcimon.screwbox.core.audio.Playback
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Returns a hash code value for this object.
- hashCode() - Method in class io.github.srcimon.screwbox.core.Bounds
- hashCode() - Method in class io.github.srcimon.screwbox.core.Duration
- hashCode() - Method in class io.github.srcimon.screwbox.core.environment.Archetype
- hashCode() - Method in record class io.github.srcimon.screwbox.core.graphics.CameraShakeOptions
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions
-
Returns a hash code value for this object.
- hashCode() - Method in class io.github.srcimon.screwbox.core.graphics.Color
- hashCode() - Method in record class io.github.srcimon.screwbox.core.graphics.LineDrawOptions
-
Returns a hash code value for this object.
- hashCode() - Method in class io.github.srcimon.screwbox.core.graphics.Offset
- hashCode() - Method in record class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.srcimon.screwbox.core.graphics.ScreenBounds
-
Returns a hash code value for this object.
- hashCode() - Method in class io.github.srcimon.screwbox.core.graphics.Size
- hashCode() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteBatch.SpriteBatchEntry
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteFillOptions
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.srcimon.screwbox.core.Grid.Node
-
Returns a hash code value for this object.
- hashCode() - Method in class io.github.srcimon.screwbox.core.Line
- hashCode() - Method in class io.github.srcimon.screwbox.core.Percent
- hashCode() - Method in class io.github.srcimon.screwbox.core.Rotation
- hashCode() - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Returns a hash code value for this object.
- hashCode() - Method in class io.github.srcimon.screwbox.core.Time
- hashCode() - Method in class io.github.srcimon.screwbox.core.Vector
- hashCode() - Method in record class io.github.srcimon.screwbox.core.window.FilesDropedOnWindow
-
Returns a hash code value for this object.
- hasHit() - Method in class io.github.srcimon.screwbox.core.physics.Raycast
- hasScrolled() - Method in interface io.github.srcimon.screwbox.core.mouse.Mouse
-
Returns true if there was any scrolling since the last frame.
- hasSingleton(Class<? extends Component>) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- height() - Method in class io.github.srcimon.screwbox.core.Bounds
-
Returns the height of this
Bounds
. - height() - Method in class io.github.srcimon.screwbox.core.graphics.Pixelfont
-
Returns the height of the pixelfont.
- height() - Method in class io.github.srcimon.screwbox.core.graphics.Size
-
The height of this
Size
. - height() - Method in interface io.github.srcimon.screwbox.core.graphics.Sizeable
-
Get the height.
- height() - Method in class io.github.srcimon.screwbox.core.Grid
- hex(String) - Static method in class io.github.srcimon.screwbox.core.graphics.Color
-
Creates a
Color
based on the given hexadecimal value. - HIDDEN - Enum constant in enum class io.github.srcimon.screwbox.core.window.MouseCursor
-
Not visible cursor.
- HOURS - Enum constant in enum class io.github.srcimon.screwbox.core.Time.Unit
- humanReadable() - Method in class io.github.srcimon.screwbox.core.Duration
I
- I - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- ICON - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- ICON_LARGE - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- id() - Method in class io.github.srcimon.screwbox.core.assets.AssetLocation
-
Returns a unique id of the
AssetLocation
. - id() - Method in record class io.github.srcimon.screwbox.core.audio.Playback
-
Returns the value of the
id
record component. - id() - Method in class io.github.srcimon.screwbox.core.environment.Entity
- ignoreCollisions - Variable in class io.github.srcimon.screwbox.core.environment.physics.PhysicsComponent
- ignoreOneWayCollisions - Variable in class io.github.srcimon.screwbox.core.environment.physics.PhysicsComponent
- ignoringEntitesNotIn(Bounds) - Method in class io.github.srcimon.screwbox.core.physics.RaycastBuilder
- ignoringEntities(Entity...) - Method in class io.github.srcimon.screwbox.core.physics.RaycastBuilder
- ignoringEntitiesHaving(Class<? extends Component>) - Method in class io.github.srcimon.screwbox.core.physics.RaycastBuilder
- ignoringEntitiesHaving(Class<? extends Component>) - Method in class io.github.srcimon.screwbox.core.physics.SelectEntityBuilder
- ignoringEntitiesMatching(Predicate<Entity>) - Method in class io.github.srcimon.screwbox.core.physics.RaycastBuilder
- image() - Method in class io.github.srcimon.screwbox.core.graphics.Frame
- image(Time) - Method in class io.github.srcimon.screwbox.core.graphics.Sprite
- importSource(List<T>) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Provides a compact syntax for importing
Entity
s from multiple custom sources using conditions andSourceImport.Converter
. - importSource(T) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Provides a compact syntax for importing
Entity
s from a custom source using conditions andSourceImport.Converter
. - IN_PLATEAU_OUT - Enum constant in enum class io.github.srcimon.screwbox.core.Ease
-
Linear fade in, plateu at 1, linear fade out.
- inactive() - Method in class io.github.srcimon.screwbox.core.utils.Latch
-
Returns the currently inactive value.
- inactive() - Method in class io.github.srcimon.screwbox.core.utils.TrippleLatch
- infinite() - Static method in record class io.github.srcimon.screwbox.core.graphics.CameraShakeOptions
-
The
Camera
will only stop shaking when invokingCamera.stopShaking()
or applying another shake. - info(String) - Method in interface io.github.srcimon.screwbox.core.log.Log
-
Logs a message using
LogLevel.INFO
. - INFO - Enum constant in enum class io.github.srcimon.screwbox.core.log.LogLevel
-
Used for noteworthy engine events.
- interactWith(UiMenu, UiLayouter, Engine) - Method in class io.github.srcimon.screwbox.core.ui.KeyboardAndMouseInteractor
- interactWith(UiMenu, UiLayouter, Engine) - Method in class io.github.srcimon.screwbox.core.ui.KeyboardInteractor
- interactWith(UiMenu, UiLayouter, Engine) - Method in interface io.github.srcimon.screwbox.core.ui.UiInteractor
- intersection(Bounds) - Method in class io.github.srcimon.screwbox.core.Bounds
- intersectionPoint(Line) - Method in class io.github.srcimon.screwbox.core.Line
-
Returns the intersection Point of this and the other
Line
. - intersections(List<Line>) - Method in class io.github.srcimon.screwbox.core.Line
- intersects(Bounds) - Method in class io.github.srcimon.screwbox.core.Bounds
- intersects(ScreenBounds) - Method in record class io.github.srcimon.screwbox.core.graphics.ScreenBounds
- intersects(Line) - Method in class io.github.srcimon.screwbox.core.Line
-
Checks if the two given
Line
s intersect each other. - interval - Variable in class io.github.srcimon.screwbox.core.environment.physics.ChaoticMovementComponent
- interval() - Method in record class io.github.srcimon.screwbox.core.graphics.CameraShakeOptions
-
Returns the value of the
interval
record component. - interval() - Method in class io.github.srcimon.screwbox.core.utils.Sheduler
-
Returns the interval the
Sheduler
is using. - interval(Duration) - Method in record class io.github.srcimon.screwbox.core.graphics.CameraShakeOptions
-
Set the
Duration
between direction changes. - introAnimation() - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Returns the value of the
introAnimation
record component. - introAnimation(Animation) - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Sets the intro animation to be played when entering a
Scene
. - introAnimation(Supplier<Animation>) - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Sets the intro animation to be played when entering a
Scene
. - introDuration() - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Returns the value of the
introDuration
record component. - introDurationMillis(long) - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Sets the Duration of the
SceneTransition.introAnimation()
in milliseconds. - introDurationSeconds(long) - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Sets the Duration of the
SceneTransition.introAnimation()
in seconds. - introEase() - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Returns the value of the
introEase
record component. - introEase(Ease) - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Sets the
Ease
used forSceneTransition.introAnimation()
. - invert() - Method in class io.github.srcimon.screwbox.core.Percent
-
Returns the inverted value of the percentage.
- invert() - Method in class io.github.srcimon.screwbox.core.Vector
-
Returns a new
Vector
with inverted X- and Y-components. - invertVerticalFlip() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Creates a new instance with inverted value for
SpriteDrawOptions.isFlipVertical()
. - invertX() - Method in class io.github.srcimon.screwbox.core.Vector
-
Returns a new
Vector
with inverted X-component. - invertY() - Method in class io.github.srcimon.screwbox.core.Vector
-
Returns a new
Vector
with inverted Y-component. - invisible() - Static method in class io.github.srcimon.screwbox.core.graphics.Frame
-
Returns an invisible
Frame
. - invisible() - Static method in class io.github.srcimon.screwbox.core.graphics.Sprite
-
Returns an invisible
Sprite
. - io.github.srcimon.screwbox.core - package io.github.srcimon.screwbox.core
-
Root package containing
ScrewBox
the entry point for starting the engine. - io.github.srcimon.screwbox.core.assets - package io.github.srcimon.screwbox.core.assets
-
Preloading and managing
Assets
. - io.github.srcimon.screwbox.core.async - package io.github.srcimon.screwbox.core.async
-
Convenience api for executing tasks in seperate threads.
- io.github.srcimon.screwbox.core.audio - package io.github.srcimon.screwbox.core.audio
-
Play
Sound
effects and music. - io.github.srcimon.screwbox.core.environment - package io.github.srcimon.screwbox.core.environment
-
Manage all game entities, components and systems in the game
Environment
. - io.github.srcimon.screwbox.core.environment.audio - package io.github.srcimon.screwbox.core.environment.audio
-
Contains audio related systems and components.
- io.github.srcimon.screwbox.core.environment.core - package io.github.srcimon.screwbox.core.environment.core
-
Core components and systems.
- io.github.srcimon.screwbox.core.environment.light - package io.github.srcimon.screwbox.core.environment.light
-
Components and systems used to add light effects.
- io.github.srcimon.screwbox.core.environment.logic - package io.github.srcimon.screwbox.core.environment.logic
-
Components and systems used for implementing logic, e.g.
- io.github.srcimon.screwbox.core.environment.particles - package io.github.srcimon.screwbox.core.environment.particles
-
Components and systems used to create particle effects.
- io.github.srcimon.screwbox.core.environment.physics - package io.github.srcimon.screwbox.core.environment.physics
-
Components and systems used to create moving objects using collisions and movement.
- io.github.srcimon.screwbox.core.environment.rendering - package io.github.srcimon.screwbox.core.environment.rendering
-
Components and systems used to render
Sprite
s and effects. - io.github.srcimon.screwbox.core.environment.tweening - package io.github.srcimon.screwbox.core.environment.tweening
-
Components and systems used to create tween effects, e.g.
- io.github.srcimon.screwbox.core.graphics - package io.github.srcimon.screwbox.core.graphics
-
Render shapes,
Sprite
s, add light effects. - io.github.srcimon.screwbox.core.keyboard - package io.github.srcimon.screwbox.core.keyboard
-
Use
Keyboard
to get keyboard control input. - io.github.srcimon.screwbox.core.log - package io.github.srcimon.screwbox.core.log
-
Basic support for logging and receiving
ScrewBox
log events. - io.github.srcimon.screwbox.core.loop - package io.github.srcimon.screwbox.core.loop
-
Information about performance metrics and setting the target fps.
- io.github.srcimon.screwbox.core.mouse - package io.github.srcimon.screwbox.core.mouse
-
Use
Mouse
to get mouse control input. - io.github.srcimon.screwbox.core.particles - package io.github.srcimon.screwbox.core.particles
-
Add particle effects to create some nice visuals.
- io.github.srcimon.screwbox.core.physics - package io.github.srcimon.screwbox.core.physics
-
Easy to use complex operations like raycasting and path finding.
- io.github.srcimon.screwbox.core.scenes - package io.github.srcimon.screwbox.core.scenes
-
Manage different game situations like pause, options and game over in different
Scenes
. - io.github.srcimon.screwbox.core.scenes.animations - package io.github.srcimon.screwbox.core.scenes.animations
-
Contains some predefined animations to be used in scene transitions.
- io.github.srcimon.screwbox.core.ui - package io.github.srcimon.screwbox.core.ui
-
Create on screen menus.
- io.github.srcimon.screwbox.core.utils - package io.github.srcimon.screwbox.core.utils
-
Container for a lot of usefull utilites e.g.
- io.github.srcimon.screwbox.core.window - package io.github.srcimon.screwbox.core.window
-
Get info and control the application
Window
. - isActive() - Method in interface io.github.srcimon.screwbox.core.log.Log
-
Checks if logging is currently active.
- isActive(Engine) - Method in class io.github.srcimon.screwbox.core.ui.UiMenuItem
-
Returns true if the
UiMenuItem
is active. - isActive(UiMenuItem, Engine) - Method in class io.github.srcimon.screwbox.core.ui.UiMenu
- isActive(Class<? extends Scene>) - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
-
Returns
true
if the specifiedScene
is currently active. - isAfter(Time) - Method in class io.github.srcimon.screwbox.core.Time
-
Specifies if this instance is after the given
Time
instance. - isAnyButtonDown() - Method in interface io.github.srcimon.screwbox.core.mouse.Mouse
-
Returns true if there was
MouseButton
down. - isAnyKeyDown() - Method in interface io.github.srcimon.screwbox.core.keyboard.Keyboard
-
Returns
true
if any key is down at the moment. - isAnyKeyPressed() - Method in interface io.github.srcimon.screwbox.core.keyboard.Keyboard
-
Returns
true
anyKey
was typed right now. - isAtLeast(Duration) - Method in class io.github.srcimon.screwbox.core.Duration
- isBefore(Time) - Method in class io.github.srcimon.screwbox.core.Time
-
Specifies if this instance is before the given
Time
instance. - isBlocked(int, int) - Method in class io.github.srcimon.screwbox.core.Grid
- isBlocked(Grid.Node) - Method in class io.github.srcimon.screwbox.core.Grid
- isBold() - Method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Returns the value of the
isBold
record component. - isClosed() - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Returns
false
if theWindow
is currently open. - isCursorOnScreen() - Method in interface io.github.srcimon.screwbox.core.mouse.Mouse
-
Checks if the Cursor is on the
Screen
or not. - isDown(Key) - Method in interface io.github.srcimon.screwbox.core.keyboard.Keyboard
-
Returns
true
if the givenKey
is down at the moment. - isDown(KeyCombination) - Method in interface io.github.srcimon.screwbox.core.keyboard.Keyboard
-
Returns
true
if the givenKeyCombination
is down at the moment. - isDown(MouseButton) - Method in interface io.github.srcimon.screwbox.core.mouse.Mouse
-
Checks if the given
MouseButton
is pressed. - isEffect() - Method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Sound
should be played as effect usingAudioConfiguration.effectVolume()
. - isEmpty() - Method in class io.github.srcimon.screwbox.core.environment.Entity
- isEmpty() - Method in class io.github.srcimon.screwbox.core.graphics.SpriteBatch
-
Returns
true
if batch has no entries. - isEnabled - Variable in class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent
- isFlipHorizontal() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Returns the value of the
isFlipHorizontal
record component. - isFlipVertical() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Returns the value of the
isFlipVertical
record component. - isFree(int, int) - Method in class io.github.srcimon.screwbox.core.Grid
-
Retruns true if the given position is not blocked and inside the
Grid
. - isFree(Grid.Node) - Method in class io.github.srcimon.screwbox.core.Grid
- isFullscreen() - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
-
Returns
true
if fullscreen is configured. - isItalic() - Method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Returns the value of the
isItalic
record component. - isLessThan(Duration) - Method in class io.github.srcimon.screwbox.core.Duration
- isLoaded() - Method in class io.github.srcimon.screwbox.core.assets.Asset
-
Returns
true
if theAsset
has been loaded. - isLoaded() - Method in class io.github.srcimon.screwbox.core.assets.AssetLocation
-
Returns
true
ifAsset
is already loaded. - isLooped - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenComponent
- isMax() - Method in class io.github.srcimon.screwbox.core.Percent
-
Returns
true
if value is 1.0. - isMicrophoneActive() - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Returns
true
if the the microphone is currently active. - isMusic() - Method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Returns the value of the
isMusic
record component. - isMusicMuted() - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Returns
true
if music is muted. - isMuted() - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Returns
true
if all playback is muted. - isNone() - Method in class io.github.srcimon.screwbox.core.Duration
-
Checks if duration has no length.
- isNone() - Method in class io.github.srcimon.screwbox.core.Rotation
-
Checks if there isn't any rotation.
- isOneWay - Variable in class io.github.srcimon.screwbox.core.environment.physics.ColliderComponent
- isOpen() - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Returns
true
if theWindow
is currently open. - isPreparing() - Method in interface io.github.srcimon.screwbox.core.assets.Assets
-
Returns
true
if preparing is currently in progress. - isPressed(Key) - Method in interface io.github.srcimon.screwbox.core.keyboard.Keyboard
-
Returns
true
if the specifiedKey
was typed right now. - isPressed(MouseButton) - Method in interface io.github.srcimon.screwbox.core.mouse.Mouse
-
Checks if the given
MouseButton
was just pressed (Will be false in the next frame.). - isPressedLeft() - Method in interface io.github.srcimon.screwbox.core.mouse.Mouse
-
Checks if the left mouse button was just pressed (Will be false in the next frame.).
- isPressedRight() - Method in interface io.github.srcimon.screwbox.core.mouse.Mouse
-
Checks if the right mouse button was just pressed (Will be false in the next frame.).
- isSelectedItem(UiMenuItem) - Method in class io.github.srcimon.screwbox.core.ui.UiMenu
- isSet() - Method in class io.github.srcimon.screwbox.core.Time
-
Returns
true
if this instance is not unset. - isShaking() - Method in interface io.github.srcimon.screwbox.core.graphics.Camera
-
Returns
true
ifCamera
is curently shaking. - isSystemPresent(Class<? extends EntitySystem>) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- isTick() - Method in class io.github.srcimon.screwbox.core.utils.Sheduler
-
Checks if the timer is triggered now.
- isTick(Time) - Method in class io.github.srcimon.screwbox.core.utils.Sheduler
-
Checks if the timer is triggered at the given
Time
. - isTransitioning() - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
-
Returns
true
if there is currently aSceneTransition
in progress. - isTriggered - Variable in class io.github.srcimon.screwbox.core.environment.logic.SignalComponent
- isUnset() - Method in class io.github.srcimon.screwbox.core.Time
-
Returns
true
if this instance is unset. - isUppercase() - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Returns the value of the
isUppercase
record component. - isUseAntialising() - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
-
Returns true if antialising is used.
- isValid() - Method in class io.github.srcimon.screwbox.core.graphics.Size
-
Returns
true
if theSize
has positive width and heigth. - isVisible(Offset) - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
- isVisible(ScreenBounds) - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
- isWarmedUp() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Returns true if the engine has reached a certain speed for once.
- isZero() - Method in class io.github.srcimon.screwbox.core.Percent
-
Returns
true
if value is 0. - isZero() - Method in class io.github.srcimon.screwbox.core.Vector
-
Checks if
Vector
is located on coordinates 0:0. - italic() - Method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Creates a new instance with italic font.
- itemCount() - Method in class io.github.srcimon.screwbox.core.ui.UiMenu
- itemIndex(UiMenuItem) - Method in class io.github.srcimon.screwbox.core.ui.UiMenu
- items() - Method in class io.github.srcimon.screwbox.core.ui.UiMenu
J
- J - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- JUMP - Enum constant in enum class io.github.srcimon.screwbox.core.audio.SoundBundle
K
- K - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- Key - Enum Class in io.github.srcimon.screwbox.core.keyboard
-
A key on your
Keyboard
. - keyboard() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Retrieve information about the current
Keyboard
state. - Keyboard - Interface in io.github.srcimon.screwbox.core.keyboard
- KeyboardAndMouseInteractor - Class in io.github.srcimon.screwbox.core.ui
- KeyboardAndMouseInteractor() - Constructor for class io.github.srcimon.screwbox.core.ui.KeyboardAndMouseInteractor
- KeyboardInteractor - Class in io.github.srcimon.screwbox.core.ui
- KeyboardInteractor() - Constructor for class io.github.srcimon.screwbox.core.ui.KeyboardInteractor
- KeyCombination - Class in io.github.srcimon.screwbox.core.keyboard
-
A combination of multiple
Key
s. - keys() - Method in class io.github.srcimon.screwbox.core.keyboard.KeyCombination
-
Returns all
Key
s in thatKeyCombination
.
L
- L - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- label(Engine) - Method in class io.github.srcimon.screwbox.core.ui.UiMenuItem
- lastingForDuration(Duration) - Static method in record class io.github.srcimon.screwbox.core.graphics.CameraShakeOptions
- lastNode() - Method in class io.github.srcimon.screwbox.core.Path
- lastPos - Variable in class io.github.srcimon.screwbox.core.environment.particles.ParticleInteractionComponent
- lastScreenshot() - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
-
Returns the last taken screenshot.
- lastUpdate() - Method in interface io.github.srcimon.screwbox.core.loop.Loop
-
Returns the
Time
of the last update cycle. - Latch<T> - Class in io.github.srcimon.screwbox.core.utils
-
Utility class that holds two instances of a class to be easily swapped between an active and inactive state.
- LEAVE_FALLING - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- LEFT - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions.Alignment
- LEFT - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.TextDrawOptions.Alignment
- LEFT - Enum constant in enum class io.github.srcimon.screwbox.core.mouse.MouseButton
-
The left mouse button.
- LEFT_SIDE - Enum constant in enum class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent.SpawnMode
- length() - Method in class io.github.srcimon.screwbox.core.Line
- length() - Method in class io.github.srcimon.screwbox.core.Vector
-
Returns the length of the
Vector
. - length(double) - Method in class io.github.srcimon.screwbox.core.Vector
-
Returns a new
Vector
in the same direction but at the given length. - lifetimeMilliseconds(long) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Sets the particle lifetime in milliseconds.
- lifetimeSeconds(long) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Sets the particle lifetime in seconds.
- light() - Method in interface io.github.srcimon.screwbox.core.graphics.Graphics
-
Subsystem for creating and rendering light effects to the screen.
- Light - Interface in io.github.srcimon.screwbox.core.graphics
-
Subsystem for creating and rendering light effects to the screen.
- LIGHT_FALLOFF - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.GraphicsConfigurationEvent.ConfigurationProperty
- lightFalloff() - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
- lightFalloff(Percent) - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
- LIGHTMAP_BLUR - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.GraphicsConfigurationEvent.ConfigurationProperty
- LIGHTMAP_SCALE - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.GraphicsConfigurationEvent.ConfigurationProperty
- lightmapBlur() - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
-
Returns the current blur of the lightmap.
- lightmapScale() - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
-
Returns the current lightmap resolution modifier.
- LightRenderSystem - Class in io.github.srcimon.screwbox.core.environment.light
- LightRenderSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.light.LightRenderSystem
- Line - Class in io.github.srcimon.screwbox.core
- LINEAR_IN - Enum constant in enum class io.github.srcimon.screwbox.core.Ease
-
Linear fade in: 0 to 1
- LINEAR_OUT - Enum constant in enum class io.github.srcimon.screwbox.core.Ease
-
Linear fade out: 1 to 0
- lineCount() - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Returns the count of currently started audio lines.
- LineDrawOptions - Record Class in io.github.srcimon.screwbox.core.graphics
-
Customize the drawing of lines.
- LineDrawOptions(Color, int) - Constructor for record class io.github.srcimon.screwbox.core.graphics.LineDrawOptions
-
Creates an instance of a
LineDrawOptions
record class. - lineSpacing() - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Returns the value of the
lineSpacing
record component. - lineSpacing(int) - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Sets the count of pixels between lines.
- lineWrap(String, int) - Static method in class io.github.srcimon.screwbox.core.utils.TextUtil
-
Wraps text lines at a certain line length.
- listAssetLocationsInClassPackage(Class<?>) - Method in interface io.github.srcimon.screwbox.core.assets.Assets
-
List all
AssetLocation
defined in the package of the given class. - listAssetLocationsInPackage(String) - Method in interface io.github.srcimon.screwbox.core.assets.Assets
-
List all
AssetLocation
defined in the given package. - listPixelDifferences(Frame) - Method in class io.github.srcimon.screwbox.core.graphics.Frame
-
Returns a list of all pixels that have a different color than the other
Frame
. - ListUtil - Class in io.github.srcimon.screwbox.core.utils
- load() - Method in class io.github.srcimon.screwbox.core.assets.Asset
-
Loads the actual resource in the
Asset
wrapper so it can be received very fast onAsset.get()
. - load() - Method in class io.github.srcimon.screwbox.core.assets.AssetLocation
-
Loads the
Asset
. - loadBinary(String) - Static method in class io.github.srcimon.screwbox.core.utils.Resources
- loadFromFile(String) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Loads a previously created savegame file and restores the saved
Environment.entities()
in theEnvironment
. - loadingDuration() - Method in class io.github.srcimon.screwbox.core.assets.AssetLocation
- loadJson(String, Class<T>) - Static method in class io.github.srcimon.screwbox.core.utils.Resources
- log() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Provides some super basic logging features and the ability to pick up engine log events via
Log.setAdapter(LoggingAdapter)
(log.LoggingAdapter)}. - log(LogLevel, String) - Method in class io.github.srcimon.screwbox.core.log.ConsoleLoggingAdapter
- log(LogLevel, String) - Method in interface io.github.srcimon.screwbox.core.log.Log
-
Logs a message using the given
LogLevel
. - log(LogLevel, String) - Method in interface io.github.srcimon.screwbox.core.log.LoggingAdapter
-
Is invoked whenever a log message should be created.
- Log - Interface in io.github.srcimon.screwbox.core.log
-
Provides some super basic logging features and the ability to pick up engine log events via
Log.setAdapter(LoggingAdapter)
. - logError(String) - Method in class io.github.srcimon.screwbox.core.log.ConsoleLoggingAdapter
- LogFpsSystem - Class in io.github.srcimon.screwbox.core.environment.core
- LogFpsSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.core.LogFpsSystem
- LoggingAdapter - Interface in io.github.srcimon.screwbox.core.log
-
Attaches the
Engine
logging events your preferred logging system. - LogLevel - Enum Class in io.github.srcimon.screwbox.core.log
-
Severity of a log message.
- logNormal(String) - Method in class io.github.srcimon.screwbox.core.log.ConsoleLoggingAdapter
- loop() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Provides access to current performance metrics and to controls the target frames per second.
- Loop - Interface in io.github.srcimon.screwbox.core.loop
-
Provides access to current performance metrics and to controls the target frames per second.
M
- M - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- MagnetComponent - Class in io.github.srcimon.screwbox.core.environment.physics
- MagnetComponent(double, double) - Constructor for class io.github.srcimon.screwbox.core.environment.physics.MagnetComponent
- magnetModifier - Variable in class io.github.srcimon.screwbox.core.environment.physics.PhysicsComponent
- MagnetSystem - Class in io.github.srcimon.screwbox.core.environment.physics
- MagnetSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.MagnetSystem
- MAN_DISSOLVE - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- MAN_STAND - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- MAN_WALK_BACK - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- MAN_WALK_FRONT - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- MAN_WALK_LEFT - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- MAN_WALK_RIGHT - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- MARKER_CROSSHAIR - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- MARKER_SHIELD - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- MARKER_SKULL - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- MARKER_SPECIAL - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- MARKER_TARGET - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- MARKER_TNT - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- matches(Entity) - Method in class io.github.srcimon.screwbox.core.environment.Archetype
- matches(Size) - Method in enum class io.github.srcimon.screwbox.core.graphics.AspectRatio
- MathUtil - Class in io.github.srcimon.screwbox.core.utils
-
Utility functions for math operations.
- max() - Static method in class io.github.srcimon.screwbox.core.Bounds
- max() - Static method in class io.github.srcimon.screwbox.core.Percent
-
Returns 100 percent.
- MAX_LINES - Enum constant in enum class io.github.srcimon.screwbox.core.audio.AudioConfigurationEvent.ConfigurationProperty
-
AudioConfiguration.maxLines()
has been changed. - maxLines() - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Returns the maximum number of audio lines used by the engine.
- maxSpeed - Variable in class io.github.srcimon.screwbox.core.environment.physics.MovementTargetComponent
- maxX() - Method in class io.github.srcimon.screwbox.core.Bounds
- maxY() - Method in class io.github.srcimon.screwbox.core.Bounds
- maxZoom() - Method in interface io.github.srcimon.screwbox.core.graphics.Camera
-
Returns the maximum
Camera.zoom()
that can be set. - merge(List<T>, List<T>) - Static method in class io.github.srcimon.screwbox.core.utils.ListUtil
- MICROPHONE_TIMEOUT - Enum constant in enum class io.github.srcimon.screwbox.core.audio.AudioConfigurationEvent.ConfigurationProperty
-
AudioConfiguration.microphoneIdleTimeout()
has been changed. - microphoneIdleTimeout() - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Gets the timout after that the microphone turns off after no further reading via
Audio.microphoneLevel()
. - microphoneLevel() - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Returns the current microphone input volume.
- MICROSECONDS - Enum constant in enum class io.github.srcimon.screwbox.core.Time.Unit
- middle() - Method in class io.github.srcimon.screwbox.core.Line
-
Returns the point in the middle of the line.
- MIDDLE - Enum constant in enum class io.github.srcimon.screwbox.core.mouse.MouseButton
-
The middle mouse button.
- MIDI_MONO - Enum constant in enum class io.github.srcimon.screwbox.core.audio.Sound.SourceFormat
- milliseconds() - Method in class io.github.srcimon.screwbox.core.Duration
-
Returns the total milliseconds of the
Duration
. - milliseconds() - Method in class io.github.srcimon.screwbox.core.Time
-
The seconds value that represents the current
Time
. - MILLISECONDS - Enum constant in enum class io.github.srcimon.screwbox.core.Time.Unit
- MIN_TARGET_FPS - Static variable in interface io.github.srcimon.screwbox.core.loop.Loop
-
The minimum target frames per second.
- MINI_STEREO - Enum constant in enum class io.github.srcimon.screwbox.core.audio.Sound.SourceFormat
- MINUTES - Enum constant in enum class io.github.srcimon.screwbox.core.Time.Unit
- minX() - Method in class io.github.srcimon.screwbox.core.Bounds
- minY() - Method in class io.github.srcimon.screwbox.core.Bounds
- minZoom() - Method in interface io.github.srcimon.screwbox.core.graphics.Camera
-
Returns the minimum
Camera.zoom()
that can be set. - mode - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenComponent
- modifier - Variable in class io.github.srcimon.screwbox.core.environment.particles.ParticleInteractionComponent
- modifier(double) - Static method in class io.github.srcimon.screwbox.core.utils.MathUtil
-
Returns 1 if value is positive or -1 if value is negative.
- modifierIds() - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Returns a set of all registered modifier identifiers.
- modifiers() - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Returns all modifiers used for particle entities.
- momentum - Variable in class io.github.srcimon.screwbox.core.environment.physics.PhysicsComponent
- MONSTER_FLYING - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- mouse() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Subsystem for getting Information on the
Mouse
. - Mouse - Interface in io.github.srcimon.screwbox.core.mouse
-
Subsystem for getting Information on the Mouse.
- MouseButton - Enum Class in io.github.srcimon.screwbox.core.mouse
-
The mouse-Buttons.
- MouseCursor - Enum Class in io.github.srcimon.screwbox.core.window
-
Some predefined mouse cursors that you can use.
- move(Vector) - Method in interface io.github.srcimon.screwbox.core.graphics.Camera
-
Moves the camera position by the given
Vector
. - moveBy(double, double) - Method in class io.github.srcimon.screwbox.core.Bounds
-
Returns a instance of this
Bounds
that was moved by the given X and Y values to a new position. - moveBy(Vector) - Method in class io.github.srcimon.screwbox.core.Bounds
- moveBy(Vector) - Method in class io.github.srcimon.screwbox.core.environment.Entity
-
Moves an
Entity
by the specified delta. - MovementPathComponent - Class in io.github.srcimon.screwbox.core.environment.physics
- MovementPathComponent(double, double) - Constructor for class io.github.srcimon.screwbox.core.environment.physics.MovementPathComponent
- MovementPathDebugSystem - Class in io.github.srcimon.screwbox.core.environment.physics
- MovementPathDebugSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.MovementPathDebugSystem
- MovementPathSystem - Class in io.github.srcimon.screwbox.core.environment.physics
- MovementPathSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.MovementPathSystem
- MovementRotationComponent - Class in io.github.srcimon.screwbox.core.environment.rendering
- MovementRotationComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.MovementRotationComponent
- MovementRotationSystem - Class in io.github.srcimon.screwbox.core.environment.rendering
- MovementRotationSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.MovementRotationSystem
- MovementTargetComponent - Class in io.github.srcimon.screwbox.core.environment.physics
-
Moves the entity towards the specified postion.
- MovementTargetComponent(Vector) - Constructor for class io.github.srcimon.screwbox.core.environment.physics.MovementTargetComponent
- MovementTargetComponent(Vector, double) - Constructor for class io.github.srcimon.screwbox.core.environment.physics.MovementTargetComponent
- MovementTargetSystem - Class in io.github.srcimon.screwbox.core.environment.physics
-
Moves entities having
MovementTargetComponent
towards the specified postion. - MovementTargetSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.MovementTargetSystem
- moveTo(Offset) - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Moves the
Window
to a new position. - moveTo(Vector) - Method in class io.github.srcimon.screwbox.core.Bounds
-
Returns a instance of this
Bounds
that was moved to the givenBounds.position
. - moveTo(Vector) - Method in class io.github.srcimon.screwbox.core.environment.Entity
-
Moves an
Entity
to the specifiedBounds.position()
. - moveWithinVisualBounds(Vector, Bounds) - Method in interface io.github.srcimon.screwbox.core.graphics.Camera
-
Moves the camera within the specified
Bounds
. - multipleFromFile(String, Size) - Static method in class io.github.srcimon.screwbox.core.graphics.Sprite
- multiply(double) - Method in class io.github.srcimon.screwbox.core.Percent
-
Returns a new instance with the current value multiplied with the given value.
- multiply(double) - Method in class io.github.srcimon.screwbox.core.Vector
-
Returns a
Vector
whose components are multiplied with the given factor. - MUSIC_VOLUME - Enum constant in enum class io.github.srcimon.screwbox.core.audio.AudioConfigurationEvent.ConfigurationProperty
-
AudioConfiguration.musicVolume()
has been changed. - musicVolume() - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Returns the current volume for music.
- mustRenderEntity(RenderComponent) - Method in class io.github.srcimon.screwbox.core.environment.rendering.RenderOverLightSystem
- mustRenderEntity(RenderComponent) - Method in class io.github.srcimon.screwbox.core.environment.rendering.RenderSystem
- mute() - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Mutes all playback.
- muteEffects() - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Mutes effects playback.
- muteMusic() - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Mutes music playback.
N
- N - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- name() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Returns the name of the
Engine
. - name() - Method in class io.github.srcimon.screwbox.core.environment.Entity
- name(String) - Method in class io.github.srcimon.screwbox.core.environment.Entity
- nanos() - Method in class io.github.srcimon.screwbox.core.Duration
-
Returns the total nanoseconds of the
Duration
. - nanos() - Method in class io.github.srcimon.screwbox.core.Time
-
The nanoseconds value that represents the current
Time
. - nanos() - Method in enum class io.github.srcimon.screwbox.core.Time.Unit
-
Count of nanoseconds per time unit.
- NANOSECONDS - Enum constant in enum class io.github.srcimon.screwbox.core.Time.Unit
- nearestHit() - Method in class io.github.srcimon.screwbox.core.physics.Raycast
- nearestOf(List<Vector>) - Method in class io.github.srcimon.screwbox.core.Vector
- neighbors(Grid.Node) - Method in class io.github.srcimon.screwbox.core.Grid
- nextItem(Engine) - Method in class io.github.srcimon.screwbox.core.ui.UiMenu
- Node(int, int, Grid.Node) - Constructor for record class io.github.srcimon.screwbox.core.Grid.Node
-
Creates an instance of a
Node
record class. - nodeAt(int, int) - Method in class io.github.srcimon.screwbox.core.Grid
-
Returns the
Grid.Node
at the given Position. - nodeCount() - Method in class io.github.srcimon.screwbox.core.Grid
- nodeCount() - Method in class io.github.srcimon.screwbox.core.Path
- nodes() - Method in class io.github.srcimon.screwbox.core.Grid
- nodes() - Method in class io.github.srcimon.screwbox.core.Path
- noDuplicates(List<T>, String) - Static method in class io.github.srcimon.screwbox.core.utils.Validate
-
Value must not contain duplicate entries.
- noHit() - Method in class io.github.srcimon.screwbox.core.physics.Raycast
- Noise - Class in io.github.srcimon.screwbox.core.utils
- none() - Static method in class io.github.srcimon.screwbox.core.Duration
-
Creates a new instance with no length at all.
- none() - Static method in class io.github.srcimon.screwbox.core.graphics.Size
-
Returns a
Size
without any extends. - none() - Static method in class io.github.srcimon.screwbox.core.Rotation
-
Creates a new
Rotation
of zeroRotation.degrees()
. - normal(Vector, double) - Static method in class io.github.srcimon.screwbox.core.Line
-
Creates a new instance of
Line
defined by the starting point and the length of the line goint up from this point. - notEmpty(List<T>, String) - Static method in class io.github.srcimon.screwbox.core.utils.Validate
-
Value must not be an empty list.
- NOTIFY - Enum constant in enum class io.github.srcimon.screwbox.core.audio.SoundBundle
- now() - Static method in class io.github.srcimon.screwbox.core.Time
-
Returns a new instance for the current
Time
. - NUMBER_1 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- NUMBER_2 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- NUMBER_3 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- NUMBER_4 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- NUMBER_5 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- NUMBER_6 - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
O
- O - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- of(double) - Static method in class io.github.srcimon.screwbox.core.Percent
-
Returns a new instance with the given values.
- of(double, double) - Static method in class io.github.srcimon.screwbox.core.graphics.Size
- of(double, double) - Static method in class io.github.srcimon.screwbox.core.Vector
-
Creates a new Instance of
Vector
at the given coordinates. - of(int, int) - Static method in class io.github.srcimon.screwbox.core.graphics.Size
- of(Line) - Static method in class io.github.srcimon.screwbox.core.Rotation
- of(Class<? extends Component>...) - Static method in class io.github.srcimon.screwbox.core.environment.Archetype
-
Creates a new
Archetype
. - of(T, T) - Static method in class io.github.srcimon.screwbox.core.utils.Latch
-
New instance with the given variables.
- of(T, T, T) - Static method in class io.github.srcimon.screwbox.core.utils.TrippleLatch
- ofExecution(Runnable) - Static method in class io.github.srcimon.screwbox.core.Duration
-
Creates a new instance with the duration of the time it took to execute the given
Runnable
. - offset - Variable in class io.github.srcimon.screwbox.core.environment.physics.AttachmentComponent
- offset - Variable in class io.github.srcimon.screwbox.core.environment.physics.CursorAttachmentComponent
- offset() - Method in record class io.github.srcimon.screwbox.core.graphics.ScreenBounds
-
Returns the value of the
offset
record component. - offset() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteBatch.SpriteBatchEntry
-
Returns the value of the
offset
record component. - offset() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteFillOptions
-
Returns the value of the
offset
record component. - offset() - Method in interface io.github.srcimon.screwbox.core.mouse.Mouse
- offset() - Method in record class io.github.srcimon.screwbox.core.window.FilesDropedOnWindow
-
Returns the value of the
offset
record component. - offset(Offset) - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteFillOptions
-
Creates a new instance with given
SpriteFillOptions.offset()
- Offset - Class in io.github.srcimon.screwbox.core.graphics
-
Represents a Position on the
Window
. - ofKeys(Key...) - Static method in class io.github.srcimon.screwbox.core.keyboard.KeyCombination
-
Creats a new instance of the given
Key
s. - ofMicros(long) - Static method in class io.github.srcimon.screwbox.core.Duration
-
Creates a new instance with the duration of the given value of microseconds.
- ofMillis(long) - Static method in class io.github.srcimon.screwbox.core.Duration
-
Creates a new instance with the duration of the given value of milliseconds.
- ofMomentum(double, double) - Static method in class io.github.srcimon.screwbox.core.Rotation
-
Returns the
Rotation
-value of an objects momentum. - ofMovement(Vector) - Static method in class io.github.srcimon.screwbox.core.Rotation
-
Returns the
Rotation
-value of an objects momentum. - ofNanos(long) - Static method in class io.github.srcimon.screwbox.core.Duration
-
Creates a new instance with the duration of the given value of nanoseconds.
- ofSeconds(long) - Static method in class io.github.srcimon.screwbox.core.Duration
-
Creates a new instance with the duration of the given value of seconds.
- onActivate(Consumer<Engine>) - Method in class io.github.srcimon.screwbox.core.ui.UiMenuItem
- onEnter(Engine) - Method in interface io.github.srcimon.screwbox.core.scenes.Scene
-
Overwriting this method allows specific actions when entering a
Scene
. - oneSecond() - Static method in class io.github.srcimon.screwbox.core.Duration
-
Creates a new instance with the duration of one second.
- onExit(Engine) - Method in interface io.github.srcimon.screwbox.core.scenes.Scene
-
Overwriting this method allows specific actions before leaving a
Scene
. - onExit(Engine) - Method in class io.github.srcimon.screwbox.core.ui.UiMenu
- opacity() - Method in class io.github.srcimon.screwbox.core.graphics.Color
-
Returns the colors opacity value.
- opacity() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Returns the value of the
opacity
record component. - opacity() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteFillOptions
-
Returns the value of the
opacity
record component. - opacity() - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Returns the value of the
opacity
record component. - opacity(double) - Method in class io.github.srcimon.screwbox.core.graphics.Color
-
Creates a new instance with same RGB-components, but custom
Color.opacity()
. - opacity(double) - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Creates a new instance with updated
SpriteDrawOptions.opacity()
. - opacity(Percent) - Method in class io.github.srcimon.screwbox.core.graphics.Color
-
Creates a new instance with same RGB-components, but custom
Color.opacity()
. - opacity(Percent) - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Creates a new instance with updated
SpriteDrawOptions.opacity()
. - opacity(Percent) - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteFillOptions
-
Creates a new instance with given
SpriteFillOptions.opacity()
. - opacity(Percent) - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Creates a new instance with given opacity.
- opacityModifier - Variable in class io.github.srcimon.screwbox.core.environment.rendering.ReflectionComponent
- open() - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Opens the
Window
. - openMenu(UiMenu) - Method in interface io.github.srcimon.screwbox.core.ui.Ui
-
Opens a
UiMenu
. - openMenu(Consumer<UiMenu>) - Method in interface io.github.srcimon.screwbox.core.ui.Ui
-
Opens a
UiMenu
. - openPreviousMenu() - Method in interface io.github.srcimon.screwbox.core.ui.Ui
-
Opens the previous
UiMenu
. - OPTIMIZATION - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- OptimizeLightPerformanceSystem - Class in io.github.srcimon.screwbox.core.environment.light
- OptimizeLightPerformanceSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.light.OptimizeLightPerformanceSystem
- OptimizePhysicsPerformanceSystem - Class in io.github.srcimon.screwbox.core.environment.physics
- OptimizePhysicsPerformanceSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.OptimizePhysicsPerformanceSystem
- options - Variable in class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- options() - Method in record class io.github.srcimon.screwbox.core.audio.Playback
-
Returns the value of the
options
record component. - options() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteBatch.SpriteBatchEntry
-
Returns the value of the
options
record component. - ORANGE - Static variable in class io.github.srcimon.screwbox.core.graphics.Color
-
The color orange.
- Order - Annotation Interface in io.github.srcimon.screwbox.core.environment
-
Specify the order of the execution of an
EntitySystem
in the gameLoop
. - Order.SystemOrder - Enum Class in io.github.srcimon.screwbox.core.environment
-
The order of execution of an
EntitySystem
. - origin() - Method in class io.github.srcimon.screwbox.core.Bounds
- origin() - Method in class io.github.srcimon.screwbox.core.environment.Entity
- origin() - Static method in class io.github.srcimon.screwbox.core.graphics.Offset
-
Upper left corner of the
Window
. - originalSize() - Static method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Creates a new instance with
SpriteDrawOptions.scale()
1. - outline(Color) - Static method in record class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions
-
Draw only the circle with the given
Color
. - outline(Color) - Static method in record class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions
-
Draw only the outline with the given
Color
. - OUTLINE - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions.Style
-
Draws only the outline using
RectangleDrawOptions.strokeWidth()
. - OUTLINE - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions.Style
-
Draws only the outline using
RectangleDrawOptions.strokeWidth()
. - outroAnimation() - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Returns the value of the
outroAnimation
record component. - outroAnimation(Animation) - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
- outroAnimation(Supplier<Animation>) - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
- outroDuration() - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Returns the value of the
outroDuration
record component. - outroDurationMillis(long) - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Sets the Duration of the
SceneTransition.outroAnimation()
in milliseconds. - outroDurationSeconds(long) - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Sets the Duration of the
SceneTransition.outroAnimation()
in seconds. - outroEase() - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Returns the value of the
outroEase
record component. - outroEase(Ease) - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Sets the
Ease
used forSceneTransition.outroAnimation()
. - overlapArea(Bounds) - Method in class io.github.srcimon.screwbox.core.Bounds
P
- P - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- padding() - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Returns the value of the
padding
record component. - padding(int) - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Creates a new instance with given padding.
- PAGE_DOWN - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- PAGE_UP - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- pan() - Method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Returns the value of the
pan
record component. - pan(double) - Method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Sets the pan of the playback.
- parallaxX - Variable in class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- parallaxY - Variable in class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- parent() - Method in record class io.github.srcimon.screwbox.core.Grid.Node
-
Returns the value of the
parent
record component. - ParticleBurstComponent - Class in io.github.srcimon.screwbox.core.environment.particles
-
Used to automatically shutdown particle emitters after some time.
- ParticleBurstComponent(Duration) - Constructor for class io.github.srcimon.screwbox.core.environment.particles.ParticleBurstComponent
- ParticleBurstSystem - Class in io.github.srcimon.screwbox.core.environment.particles
-
Finds particle emitters that have a
ParticleBurstComponent
and shut them down if they are active for too long. - ParticleBurstSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.particles.ParticleBurstSystem
- ParticleComponent - Class in io.github.srcimon.screwbox.core.environment.particles
-
Marks entities that were created as particles.
- ParticleComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.particles.ParticleComponent
- particleCount() - Method in interface io.github.srcimon.screwbox.core.particles.Particles
-
Returns the current count of particles in the
Environment.entities()
. - ParticleDebugSystem - Class in io.github.srcimon.screwbox.core.environment.particles
-
Can be used to mark particles and particle emitters on the
Screen
. - ParticleDebugSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.particles.ParticleDebugSystem
- ParticleEmitterComponent - Class in io.github.srcimon.screwbox.core.environment.particles
- ParticleEmitterComponent(Duration, ParticleEmitterComponent.SpawnMode, ParticleOptions) - Constructor for class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent
- ParticleEmitterComponent(Duration, ParticleEmitterComponent.SpawnMode, Supplier<ParticleOptions>) - Constructor for class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent
- ParticleEmitterComponent(Duration, ParticleOptions) - Constructor for class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent
- ParticleEmitterComponent(Duration, Supplier<ParticleOptions>) - Constructor for class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent
- ParticleEmitterComponent.SpawnMode - Enum Class in io.github.srcimon.screwbox.core.environment.particles
-
Specify the area where
Particles
are emitted. - ParticleEmitterSystem - Class in io.github.srcimon.screwbox.core.environment.particles
- ParticleEmitterSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterSystem
- ParticleInteractionComponent - Class in io.github.srcimon.screwbox.core.environment.particles
- ParticleInteractionComponent(double) - Constructor for class io.github.srcimon.screwbox.core.environment.particles.ParticleInteractionComponent
- ParticleInteractionComponent(double, Percent) - Constructor for class io.github.srcimon.screwbox.core.environment.particles.ParticleInteractionComponent
- ParticleInteractionSystem - Class in io.github.srcimon.screwbox.core.environment.particles
- ParticleInteractionSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.particles.ParticleInteractionSystem
- particleLimit() - Method in interface io.github.srcimon.screwbox.core.particles.Particles
-
Returns the current limit of particles.
- particleOptions - Variable in class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent
- ParticleOptions - Class in io.github.srcimon.screwbox.core.particles
-
Is used by the
ParticleEmitterComponent
to createEnvironment.entities()
that are used for particle effects. - ParticleOptions.ParticleModifiers - Interface in io.github.srcimon.screwbox.core.particles
-
Used to add special customization to the particles that is not already available via
ParticleOptions
methods. - ParticleOptionsBundle - Enum Class in io.github.srcimon.screwbox.core.particles
- particles() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Add particle effects to create some nice visuals.
- Particles - Interface in io.github.srcimon.screwbox.core.particles
-
Add particle effects to create some nice visuals.
- particleSource(Entity) - Static method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Creates a new instance.
- particlesSpawnCount() - Method in interface io.github.srcimon.screwbox.core.particles.Particles
-
Returns the count of particles spawned within the runtime of the engine.
- path - Variable in class io.github.srcimon.screwbox.core.environment.physics.MovementPathComponent
- Path - Class in io.github.srcimon.screwbox.core
- pathfindingAlgorithm() - Method in interface io.github.srcimon.screwbox.core.physics.Physics
-
Returns the currently used
PathfindingAlgorithm
. - PathfindingAlgorithm - Interface in io.github.srcimon.screwbox.core.physics
- Percent - Class in io.github.srcimon.screwbox.core
-
A percent value between 0.0 and 1.0.
- PHASER - Enum constant in enum class io.github.srcimon.screwbox.core.audio.SoundBundle
- physics() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Advanced searching for entities, pathfinding, raycasting and adjusting Entites to a
Grid
. - Physics - Interface in io.github.srcimon.screwbox.core.physics
- PhysicsComponent - Class in io.github.srcimon.screwbox.core.environment.physics
- PhysicsComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.PhysicsComponent
- PhysicsComponent(Vector) - Constructor for class io.github.srcimon.screwbox.core.environment.physics.PhysicsComponent
- PhysicsGridConfigurationComponent - Class in io.github.srcimon.screwbox.core.environment.physics
- PhysicsGridConfigurationComponent(Bounds, int, Sheduler) - Constructor for class io.github.srcimon.screwbox.core.environment.physics.PhysicsGridConfigurationComponent
- PhysicsGridObstacleComponent - Class in io.github.srcimon.screwbox.core.environment.physics
- PhysicsGridObstacleComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.PhysicsGridObstacleComponent
- PhysicsGridUpdateSystem - Class in io.github.srcimon.screwbox.core.environment.physics
- PhysicsGridUpdateSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.PhysicsGridUpdateSystem
- PhysicsSystem - Class in io.github.srcimon.screwbox.core.environment.physics
- PhysicsSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.PhysicsSystem
- pixel(Color) - Static method in class io.github.srcimon.screwbox.core.graphics.Sprite
- pixelCount() - Method in class io.github.srcimon.screwbox.core.graphics.Size
- Pixelfont - Class in io.github.srcimon.screwbox.core.graphics
-
A font made of
Sprite
s (even animated ones) for system independent rendering. - Pixelfont() - Constructor for class io.github.srcimon.screwbox.core.graphics.Pixelfont
- Pixelperfect - Class in io.github.srcimon.screwbox.core.utils
- PLATEAU_OUT - Enum constant in enum class io.github.srcimon.screwbox.core.Ease
-
Plateu at 1, linear fade out.
- PLATEAU_OUT_SLOW - Enum constant in enum class io.github.srcimon.screwbox.core.Ease
-
Plateu at 1, linear fade out slower.
- playback - Variable in class io.github.srcimon.screwbox.core.environment.audio.SoundComponent
- Playback - Record Class in io.github.srcimon.screwbox.core.audio
- Playback(UUID, Sound, SoundOptions) - Constructor for record class io.github.srcimon.screwbox.core.audio.Playback
-
Creates an instance of a
Playback
record class. - playbackIsActive(Playback) - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Returns
true
if the specifiedPlayback
is active. - playContinuously() - Static method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Playback
Sound
until stopped viaAudio.stopAllPlaybacks(Sound)
. - playOnce() - Static method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Playback
Sound
only once. - playSound(Sound) - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Plays a
Sound
a single time. - playSound(Sound, SoundOptions) - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Plays a
Sound
using the givenSoundOptions
. - playSound(Supplier<Sound>) - Method in interface io.github.srcimon.screwbox.core.audio.Audio
- playSound(Supplier<Sound>, SoundOptions) - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Plays a
Sound
using the givenSoundOptions
. - playTimes(int) - Static method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Playback
Sound
looped for the given times. - PLING - Enum constant in enum class io.github.srcimon.screwbox.core.audio.SoundBundle
- PointLightComponent - Class in io.github.srcimon.screwbox.core.environment.light
- PointLightComponent(double) - Constructor for class io.github.srcimon.screwbox.core.environment.light.PointLightComponent
- PointLightComponent(double, Color) - Constructor for class io.github.srcimon.screwbox.core.environment.light.PointLightComponent
- populate(Environment) - Method in class io.github.srcimon.screwbox.core.scenes.DefaultLoadingScene
- populate(Environment) - Method in class io.github.srcimon.screwbox.core.scenes.DefaultScene
- populate(Environment) - Method in interface io.github.srcimon.screwbox.core.scenes.Scene
-
Populates the
Environment
linked to theScene
. - position - Variable in class io.github.srcimon.screwbox.core.environment.physics.MovementTargetComponent
- position() - Method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Returns the value of the
position
record component. - position() - Method in class io.github.srcimon.screwbox.core.Bounds
- position() - Method in class io.github.srcimon.screwbox.core.environment.Entity
- position() - Method in interface io.github.srcimon.screwbox.core.graphics.Camera
-
Returns the postion of the
Camera
. - position() - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
-
Returns the position of the
Screen
relative to the monitor. - position() - Method in interface io.github.srcimon.screwbox.core.mouse.Mouse
-
Returns the current mouse position in the
World
. - position() - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Returns the current position of the
Window
. - position(Vector) - Method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Sets a postion as source of the
Sound
. - POSITION - Enum constant in enum class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent.SpawnMode
- positive(double, String) - Static method in class io.github.srcimon.screwbox.core.utils.Validate
-
Value must be a postive double.
- positive(int, String) - Static method in class io.github.srcimon.screwbox.core.utils.Validate
-
Value must be a postive int.
- PREPARATION - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- prepareClassPackage(Class<?>) - Method in interface io.github.srcimon.screwbox.core.assets.Assets
-
Loads all unloaded
AssetLocation
s in the package of the given class. - prepareClassPackageAsync(Class<?>) - Method in interface io.github.srcimon.screwbox.core.assets.Assets
-
Start asynchronous loading of all unloaded
Asset
s in the package of the given class. - prepareEngineAssets() - Method in interface io.github.srcimon.screwbox.core.assets.Assets
-
Prepares all prepacked
AssetBundle
s in theScrewBox
game engine. - prepareEngineAssetsAsync() - Method in interface io.github.srcimon.screwbox.core.assets.Assets
-
Start asynchronous loading of all prepacked
AssetBundle
s in theScrewBox
game engine. - preparePackage(String) - Method in interface io.github.srcimon.screwbox.core.assets.Assets
-
Loads all unloaded
AssetLocation
s in the given package. - preparePackageAsync(String) - Method in interface io.github.srcimon.screwbox.core.assets.Assets
-
Start asynchronous loading of all unloaded
Asset
s in the given package. - PRESENTATION_BACKGROUND - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- PRESENTATION_EFFECTS - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- PRESENTATION_LIGHT - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- PRESENTATION_ON_TOP_OF_LIGHT - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- PRESENTATION_OVERLAY - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- PRESENTATION_PREPARE - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- PRESENTATION_TRANSITIONS - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- PRESENTATION_UI - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- PRESENTATION_UI_BACKGROUND - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- PRESENTATION_UI_FOREGROUND - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- PRESENTATION_WORLD - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- pressedKeys() - Method in interface io.github.srcimon.screwbox.core.keyboard.Keyboard
-
Returns all pressed
Key
s. - previousItem(Engine) - Method in class io.github.srcimon.screwbox.core.ui.UiMenu
- progress - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenComponent
- progress(Time, Time) - Method in class io.github.srcimon.screwbox.core.Duration
-
Calculates the progress that has been made from a start time towards the
Duration
. - put(K, V) - Method in class io.github.srcimon.screwbox.core.utils.Cache
- put(K, V) - Method in class io.github.srcimon.screwbox.core.utils.TimeoutCache
Q
- Q - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- quater() - Static method in class io.github.srcimon.screwbox.core.Percent
-
Returns 25 percent.
- QuitOnKeySystem - Class in io.github.srcimon.screwbox.core.environment.core
- QuitOnKeySystem() - Constructor for class io.github.srcimon.screwbox.core.environment.core.QuitOnKeySystem
- QuitOnKeySystem(Key) - Constructor for class io.github.srcimon.screwbox.core.environment.core.QuitOnKeySystem
R
- r() - Method in class io.github.srcimon.screwbox.core.graphics.Color
-
Returns red value of the
Color
. - R - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- radians() - Method in class io.github.srcimon.screwbox.core.Rotation
-
Returns the radians value of this
Rotation
. - radius - Variable in class io.github.srcimon.screwbox.core.environment.light.ConeLightComponent
- radius - Variable in class io.github.srcimon.screwbox.core.environment.light.GlowComponent
- radius - Variable in class io.github.srcimon.screwbox.core.environment.light.PointLightComponent
- radius - Variable in class io.github.srcimon.screwbox.core.environment.light.SpotLightComponent
- random() - Static method in class io.github.srcimon.screwbox.core.graphics.Color
-
Creates a random
Color
with fullColor.opacity()
. - random() - Static method in class io.github.srcimon.screwbox.core.Rotation
-
Creates a new random
Rotation
. - random(double) - Static method in class io.github.srcimon.screwbox.core.Vector
-
Returns a new
Vector
with random direction an the given length. - randomBaseSpeed(double) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Adds an random initial movement to the particle.
- randomBaseSpeed(double, double) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Adds an random initial movement to the particle.
- randomFrom(List<T>) - Static method in class io.github.srcimon.screwbox.core.utils.ListUtil
- randomFrom(T...) - Static method in class io.github.srcimon.screwbox.core.utils.ListUtil
- randomLifeTimeMilliseconds(long, long) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Sets the particle lifetime to a random amount of seconts in the given range.
- randomLifeTimeSeconds(long, long) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Sets the particle lifetime to a random amount of seconts in the given range.
- randomRotation(double) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Adds continuous rotation to the
Sprite
. - randomRotation(double, double) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Adds random continuous rotation to the
Sprite
. - randomStartRotation() - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Sets the initial
Rotation
of a particle to a random value. - randomStartScale(double, double) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Sets the initial scale of the particle to a random number in the given range.
- range - Variable in class io.github.srcimon.screwbox.core.environment.particles.ParticleInteractionComponent
- range - Variable in class io.github.srcimon.screwbox.core.environment.physics.MagnetComponent
- ray() - Method in class io.github.srcimon.screwbox.core.physics.Raycast
- Raycast - Class in io.github.srcimon.screwbox.core.physics
- RaycastBuilder - Class in io.github.srcimon.screwbox.core.physics
- RaycastBuilder(Environment, Vector) - Constructor for class io.github.srcimon.screwbox.core.physics.RaycastBuilder
- raycastFrom(Vector) - Method in interface io.github.srcimon.screwbox.core.physics.Physics
- reachableNeighbors(Grid.Node) - Method in class io.github.srcimon.screwbox.core.Grid
- RectangleDrawOptions - Record Class in io.github.srcimon.screwbox.core.graphics
-
Customize the drawing of rectangles.
- RectangleDrawOptions(RectangleDrawOptions.Style, Color, int, Rotation) - Constructor for record class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions
-
Creates an instance of a
RectangleDrawOptions
record class. - RectangleDrawOptions.Style - Enum Class in io.github.srcimon.screwbox.core.graphics
-
The style used to draw.
- RED - Static variable in class io.github.srcimon.screwbox.core.graphics.Color
-
The color red.
- ReflectionComponent - Class in io.github.srcimon.screwbox.core.environment.rendering
- ReflectionComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.ReflectionComponent
- ReflectionComponent(Percent) - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.ReflectionComponent
- ReflectionComponent(Percent, int) - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.ReflectionComponent
- ReflectionRenderSystem - Class in io.github.srcimon.screwbox.core.environment.rendering
- ReflectionRenderSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.ReflectionRenderSystem
- ReflectionResultComponent - Class in io.github.srcimon.screwbox.core.environment.rendering
-
Automatically added by
ReflectionRenderSystem
. - ReflectionResultComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.ReflectionResultComponent
- Reflections - Class in io.github.srcimon.screwbox.core.utils
- registerListener(EntityListener) - Method in class io.github.srcimon.screwbox.core.environment.Entity
-
Registers the specified
EntityListener
to receive Events for thisEntity
. - remove(Entity) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- remove(Class<? extends Component>) - Method in class io.github.srcimon.screwbox.core.environment.Entity
-
Removes a
Component
of the given class. - remove(Class<? extends EntitySystem>) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- remove(Class<? extends Scene>) - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
-
Removes a previously added
Scene
. - remove(List<Entity>) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- removeAll(Archetype) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- removeAllComponentsOfType(Class<? extends Component>) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Removes all
Component
s with the given type from allEnvironment.entities()
. - removeNode(int) - Method in class io.github.srcimon.screwbox.core.Path
- removeSystemIfPresent(Class<? extends EntitySystem>) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- render() - Method in interface io.github.srcimon.screwbox.core.graphics.Light
-
Renders the lightmap to
Window
. - RenderComponent - Class in io.github.srcimon.screwbox.core.environment.rendering
- RenderComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- RenderComponent(int) - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- RenderComponent(Sprite) - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- RenderComponent(Sprite, int) - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- RenderComponent(Sprite, int, SpriteDrawOptions) - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- RenderComponent(Sprite, SpriteDrawOptions) - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- RenderComponent(Supplier<Sprite>) - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- RenderComponent(Supplier<Sprite>, int) - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- RenderComponent(Supplier<Sprite>, int, SpriteDrawOptions) - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- RenderComponent(Supplier<Sprite>, SpriteDrawOptions) - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- renderInactiveItem(String, ScreenBounds, Screen) - Method in class io.github.srcimon.screwbox.core.ui.SimpleUiRenderer
- renderInactiveItem(String, ScreenBounds, Screen) - Method in interface io.github.srcimon.screwbox.core.ui.UiRenderer
- renderOverLight - Variable in class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- RenderOverLightSystem - Class in io.github.srcimon.screwbox.core.environment.rendering
- RenderOverLightSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.RenderOverLightSystem
- renderSelectableItem(String, ScreenBounds, Screen) - Method in class io.github.srcimon.screwbox.core.ui.SimpleUiRenderer
- renderSelectableItem(String, ScreenBounds, Screen) - Method in interface io.github.srcimon.screwbox.core.ui.UiRenderer
- renderSelectedItem(String, ScreenBounds, Screen) - Method in class io.github.srcimon.screwbox.core.ui.SimpleUiRenderer
- renderSelectedItem(String, ScreenBounds, Screen) - Method in interface io.github.srcimon.screwbox.core.ui.UiRenderer
- RenderSystem - Class in io.github.srcimon.screwbox.core.environment.rendering
- RenderSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.rendering.RenderSystem
- replaceColor(Color, Color) - Method in class io.github.srcimon.screwbox.core.graphics.Frame
-
Returns a new instance.
- replaceColor(Color, Color) - Method in class io.github.srcimon.screwbox.core.graphics.Pixelfont
- replaceColor(Color, Color) - Method in class io.github.srcimon.screwbox.core.graphics.Sprite
-
Returns a new
Sprite
. - resetActiveScene() - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
-
Clears all
Environment.entities()
andEnvironment.systems()
and repopulates the active scene. - resetActiveScene(SceneTransition) - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
-
Clears all
Environment.entities()
andEnvironment.systems()
and repopulates the active scene. - resolution() - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
-
Returns current resolution.
- RESOLUTION - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.GraphicsConfigurationEvent.ConfigurationProperty
- resourceExists(String) - Static method in class io.github.srcimon.screwbox.core.utils.Resources
-
Returns true if there is a resource with the given file name.
- Resources - Class in io.github.srcimon.screwbox.core.utils
-
Provides convenience methods to access
ClassLoader
accessible resources. - reverse - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenComponent
- rgb(int, int, int) - Static method in class io.github.srcimon.screwbox.core.graphics.Color
-
Creates a color based on RGB-components with full
Color.opacity()
. - rgb(int, int, int, Percent) - Static method in class io.github.srcimon.screwbox.core.graphics.Color
-
Creates a
Color
based on RGB-components and customColor.opacity()
. - RIGHT - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions.Alignment
- RIGHT - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.TextDrawOptions.Alignment
- RIGHT - Enum constant in enum class io.github.srcimon.screwbox.core.mouse.MouseButton
-
The right mouse button.
- RIGHT_SIDE - Enum constant in enum class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent.SpawnMode
- rotation() - Method in record class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions
-
Returns the value of the
rotation
record component. - rotation() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Returns the value of the
rotation
record component. - rotation(Rotation) - Method in record class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions
-
Sets the
RectangleDrawOptions.rotation()
of the drawn rectangle. - rotation(Rotation) - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Creates a new instance with updated
SpriteDrawOptions.rotation()
. - Rotation - Class in io.github.srcimon.screwbox.core
- run(Object, Runnable) - Method in interface io.github.srcimon.screwbox.core.async.Async
-
Runs a task in the given context.
- runExclusive(Object, Runnable) - Method in interface io.github.srcimon.screwbox.core.async.Async
-
Runs a task in the given context, but only if there is no other task in the context running right now.
- runningTime() - Method in interface io.github.srcimon.screwbox.core.loop.Loop
-
Returns the running time of the game engine.
S
- S - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- sameSign(double, double) - Static method in class io.github.srcimon.screwbox.core.utils.MathUtil
-
Returns
true
if both values have the same sign. - savegameFileExists(String) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Returns true if there is a savegame with the given name.
- saveToFile(String) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Creates a savegame file with the given name.
- scale() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Returns the value of the
scale
record component. - scale() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteFillOptions
-
Returns the value of the
scale
record component. - scale() - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Returns the value of the
scale
record component. - scale(double) - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Creates a new instance with updated
SpriteDrawOptions.scale()
. - scale(double) - Static method in record class io.github.srcimon.screwbox.core.graphics.SpriteFillOptions
-
Creates a new instance with given
SpriteFillOptions.scale()
. - scale(double) - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Creates a new instance with given scale.
- scaled(double) - Method in class io.github.srcimon.screwbox.core.graphics.Frame
-
Returns a scaled version of the current
Frame
. - scaled(double) - Method in class io.github.srcimon.screwbox.core.graphics.Sprite
-
Returns a scaled version of this
Sprite
. - scaled(double) - Static method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Creates a new instance with given
SpriteDrawOptions.scale()
. - Scene - Interface in io.github.srcimon.screwbox.core.scenes
-
Structures game sitations in
Scenes
. - sceneCount() - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
-
Returns the current scene count.
- scenes() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Use
Scenes
to structure different game situations. - Scenes - Interface in io.github.srcimon.screwbox.core.scenes
-
Manage different game situations like pause or options in different
Scenes
. - SceneTransition - Record Class in io.github.srcimon.screwbox.core.scenes
-
Configures a scene transition.
- SceneTransition(Animation, Duration, Ease, Animation, Duration, Ease) - Constructor for record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Creates an instance of a
SceneTransition
record class. - screen() - Method in interface io.github.srcimon.screwbox.core.graphics.Graphics
-
Access drawing operations on the game screen.
- Screen - Interface in io.github.srcimon.screwbox.core.graphics
-
Access drawing operations on the game screen.
- ScreenBounds - Record Class in io.github.srcimon.screwbox.core.graphics
-
Defines the area on the
Screen
. - ScreenBounds(int, int, int, int) - Constructor for record class io.github.srcimon.screwbox.core.graphics.ScreenBounds
- ScreenBounds(Offset, Size) - Constructor for record class io.github.srcimon.screwbox.core.graphics.ScreenBounds
-
Creates an instance of a
ScreenBounds
record class. - ScrewBox - Class in io.github.srcimon.screwbox.core
-
Best game engine ever made (not).
- ScrollingUiLayouter - Class in io.github.srcimon.screwbox.core.ui
- ScrollingUiLayouter() - Constructor for class io.github.srcimon.screwbox.core.ui.ScrollingUiLayouter
- searchAtPosition(Vector) - Method in interface io.github.srcimon.screwbox.core.physics.Physics
- searchInRange(Bounds) - Method in interface io.github.srcimon.screwbox.core.physics.Physics
- seconds() - Method in class io.github.srcimon.screwbox.core.Duration
-
Returns the total seconds of the
Duration
. - SECONDS - Enum constant in enum class io.github.srcimon.screwbox.core.Time.Unit
- segments() - Method in class io.github.srcimon.screwbox.core.Path
- selectAll() - Method in class io.github.srcimon.screwbox.core.physics.SelectEntityBuilder
- selectAllEntities() - Method in class io.github.srcimon.screwbox.core.physics.Raycast
- selectAny() - Method in class io.github.srcimon.screwbox.core.physics.SelectEntityBuilder
- selectAnyEntity() - Method in class io.github.srcimon.screwbox.core.physics.Raycast
- selectedItem() - Method in class io.github.srcimon.screwbox.core.ui.UiMenu
- SelectEntityBuilder - Class in io.github.srcimon.screwbox.core.physics
- SelectEntityBuilder(Environment, Bounds) - Constructor for class io.github.srcimon.screwbox.core.physics.SelectEntityBuilder
- SelectEntityBuilder(Environment, Vector) - Constructor for class io.github.srcimon.screwbox.core.physics.SelectEntityBuilder
- selectItem(UiMenuItem) - Method in class io.github.srcimon.screwbox.core.ui.UiMenu
- selfShadow - Variable in class io.github.srcimon.screwbox.core.environment.light.ShadowCasterComponent
- setAdapter(LoggingAdapter) - Method in interface io.github.srcimon.screwbox.core.log.Log
-
Sets the
LoggingAdapter
that is used for logging all messages. - setAmbientLight(Percent) - Method in interface io.github.srcimon.screwbox.core.graphics.Light
-
Sets the brightness of the
Light.ambientLight()
that illuminates theWorld
even without a lightsource. - setApplicationIcon(Sprite) - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Sets the application icon.
- setCursor(Sprite) - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Updates the mouse cursor with the given
Sprite
when game is in fullscreen and window mode. - setCursor(MouseCursor) - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Updates the mouse cursor of to the given
MouseCursor
when game is in fullscreen and window mode. - setCursor(Supplier<Sprite>) - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Updates the mouse cursor with the given
Sprite
when game is in fullscreen and window mode. - setDefaultTransition(SceneTransition) - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
- setEffectsMuted(boolean) - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Sets effects to muted or unmuted.
- setEffectVolume(Percent) - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Sets the volume of all
Sound
s that are played viaAudio.playSound(Sound)
. - setFullscreen(boolean) - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
- setFullscreenCursor(Sprite) - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Updates the mouse cursor with the given
Sprite
when game is in fullscreen mode. - setFullscreenCursor(MouseCursor) - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Updates the mouse cursor of to the given
MouseCursor
when game is in fullscreen mode. - setGrid(Grid) - Method in interface io.github.srcimon.screwbox.core.physics.Physics
-
Sets the
Grid
that is currently used to snap objects and find paths. - setInteractor(UiInteractor) - Method in interface io.github.srcimon.screwbox.core.ui.Ui
- setLayouter(UiLayouter) - Method in interface io.github.srcimon.screwbox.core.ui.Ui
- setLightmapBlur(int) - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
-
Configures the blur of the lightmap.
- setLightmapScale(int) - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
-
Sets the resolution modifier for the light map.
- setLoadingScene(Scene) - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
- setMaxLines(int) - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Sets the maximum number of audio lines used by the engine.
- setMicrophoneIdleTimeout(Duration) - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Sets timeout for the microphone to turn off after no further reading via
Audio.microphoneLevel()
. - setMinimumSeverity(LogLevel) - Method in interface io.github.srcimon.screwbox.core.log.Log
-
Disables all logging below the given
LogLevel
(not included). - setMusicMuted(boolean) - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Sets music to muted or unmuted.
- setMusicVolume(Percent) - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Sets the volume of all
Sound
s that are played havingSoundOptions.isMusic()
- setMuted(boolean) - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Sets all playback muted or unmuted.
- setParticleLimit(int) - Method in interface io.github.srcimon.screwbox.core.particles.Particles
-
Sets the limit of particles.
- setPathfindingAlgorithm(PathfindingAlgorithm) - Method in interface io.github.srcimon.screwbox.core.physics.Physics
-
Set the currently used
PathfindingAlgorithm
. - setPosition(Vector) - Method in interface io.github.srcimon.screwbox.core.graphics.Camera
-
Sets the camera position.
- setRenderer(UiRenderer) - Method in interface io.github.srcimon.screwbox.core.ui.Ui
- setResolution(int, int) - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
- setResolution(Size) - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
- setSoundRange(double) - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Sets the sound range that is used to determin
SoundOptions.pan()
andSoundOptions.volume()
whenSound
is played based onSoundOptions.position()
. - setSpawnDistance(double) - Method in interface io.github.srcimon.screwbox.core.particles.Particles
-
Sets the max distance that particles will be spawened outside the field of vision.
- setTargetFps(int) - Method in interface io.github.srcimon.screwbox.core.loop.Loop
-
Sets the games target frames per second.
- setTitle(String) - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Sets the title of the
Window
. - setUseAntialiasing(boolean) - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
-
Sets the antialising state.
- setWindowCursor(Sprite) - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Updates the mouse cursor with the given
Sprite
when game is in fullscreen mode. - setWindowCursor(MouseCursor) - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Updates the mouse cursor of to the given
MouseCursor
when game is in window mode. - setZoom(double) - Method in interface io.github.srcimon.screwbox.core.graphics.Camera
-
Updates the camera zoom nearly to the specified value.
- setZoomRestriction(double, double) - Method in interface io.github.srcimon.screwbox.core.graphics.Camera
-
Restricts zooming to the given range.
- ShadowCasterComponent - Class in io.github.srcimon.screwbox.core.environment.light
- ShadowCasterComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.light.ShadowCasterComponent
- ShadowCasterComponent(boolean) - Constructor for class io.github.srcimon.screwbox.core.environment.light.ShadowCasterComponent
- shake(CameraShakeOptions) - Method in interface io.github.srcimon.screwbox.core.graphics.Camera
-
Shakes the
Camera
with the specifiedCameraShakeOptions
. - sheduler - Variable in class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent
- Sheduler - Class in io.github.srcimon.screwbox.core.utils
-
A simple sheduler to trigger timed actions.
- shift - Variable in class io.github.srcimon.screwbox.core.environment.rendering.CameraTargetComponent
- SHIFT_LEFT - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- shortName() - Method in enum class io.github.srcimon.screwbox.core.Time.Unit
-
Short name of the time unit.
- SignalComponent - Class in io.github.srcimon.screwbox.core.environment.logic
- SignalComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.logic.SignalComponent
- SimpleUiLayouter - Class in io.github.srcimon.screwbox.core.ui
- SimpleUiLayouter() - Constructor for class io.github.srcimon.screwbox.core.ui.SimpleUiLayouter
- SimpleUiRenderer - Class in io.github.srcimon.screwbox.core.ui
- SimpleUiRenderer() - Constructor for class io.github.srcimon.screwbox.core.ui.SimpleUiRenderer
- SIMULATION - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- SIMULATION_BEGIN - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- SIMULATION_LATE - Enum constant in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
- SIN_IN_OUT_TWICE - Enum constant in enum class io.github.srcimon.screwbox.core.Ease
-
Sinus fade in and out again twice: 0 to 1 to 0 to 1 to 0
- since(Time) - Static method in class io.github.srcimon.screwbox.core.Duration
-
Creates a new instance with the duration since the given
Time
value. - SINE_IN - Enum constant in enum class io.github.srcimon.screwbox.core.Ease
-
Sinus fade in: 0 to 1
- SINE_IN_OUT - Enum constant in enum class io.github.srcimon.screwbox.core.Ease
-
Sinus fade in and out again: 0 to 1 to 0
- SINE_OUT - Enum constant in enum class io.github.srcimon.screwbox.core.Ease
-
Sinus fade out: 1 to 0
- singleFrame() - Method in class io.github.srcimon.screwbox.core.graphics.Sprite
- singleImage() - Method in class io.github.srcimon.screwbox.core.graphics.Sprite
- size() - Method in class io.github.srcimon.screwbox.core.Bounds
-
Returns the size of the
Bounds
. - size() - Method in class io.github.srcimon.screwbox.core.graphics.Frame
-
Returns the size of the frames
Frame.image()
. - size() - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
- size() - Method in record class io.github.srcimon.screwbox.core.graphics.ScreenBounds
-
Returns the value of the
size
record component. - size() - Method in interface io.github.srcimon.screwbox.core.graphics.Sizeable
-
Get the size.
- size() - Method in class io.github.srcimon.screwbox.core.graphics.Sprite
-
Returns the size of the
Sprite
. - size() - Method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Returns the value of the
size
record component. - size() - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Returns the current size of the
Window
. - size(int) - Method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Creates a new instance with given
SystemTextDrawOptions.size()
. - Size - Class in io.github.srcimon.screwbox.core.graphics
- Sizeable - Interface in io.github.srcimon.screwbox.core.graphics
-
Adds
Sizeable.width()
andSizeable.height()
methods to any class that has a size. - sizeOf(String) - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Returns the
Size
of the given text renderd with thisTextDrawOptions
. - SKINNY_SANS - Enum constant in enum class io.github.srcimon.screwbox.core.assets.FontBundle
- SLIME_MOVING - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- SMOKE - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- SMOKE - Enum constant in enum class io.github.srcimon.screwbox.core.particles.ParticleOptionsBundle
- snap(Vector) - Method in class io.github.srcimon.screwbox.core.Grid
- snapToGrid(Bounds) - Method in interface io.github.srcimon.screwbox.core.physics.Physics
- snapToGrid(Vector) - Method in interface io.github.srcimon.screwbox.core.physics.Physics
- sound - Variable in class io.github.srcimon.screwbox.core.environment.audio.SoundComponent
- sound() - Method in record class io.github.srcimon.screwbox.core.audio.Playback
-
Returns the value of the
sound
record component. - Sound - Class in io.github.srcimon.screwbox.core.audio
-
A
Sound
that can be played viaEngine.audio()
. - SOUND_RANGE - Enum constant in enum class io.github.srcimon.screwbox.core.audio.AudioConfigurationEvent.ConfigurationProperty
-
AudioConfiguration.soundRange()
has been changed. - Sound.SourceFormat - Enum Class in io.github.srcimon.screwbox.core.audio
-
The source format of the sound data.
- SoundBundle - Enum Class in io.github.srcimon.screwbox.core.audio
- SoundComponent - Class in io.github.srcimon.screwbox.core.environment.audio
-
Adds a constantly playing sound output to an
Entity
. - SoundComponent(Sound) - Constructor for class io.github.srcimon.screwbox.core.environment.audio.SoundComponent
- SoundComponent(Supplier<Sound>) - Constructor for class io.github.srcimon.screwbox.core.environment.audio.SoundComponent
- SoundOptions - Record Class in io.github.srcimon.screwbox.core.audio
- SoundOptions(int, Percent, double, boolean, Vector, double) - Constructor for record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Creates an instance of a
SoundOptions
record class. - soundRange() - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Gets the sound range that is used to determin
SoundOptions.pan()
andSoundOptions.volume()
whenSound
is played based onSoundOptions.position()
. - soundsPlayedCount() - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Returns the total number of finished sounds.
- SoundSystem - Class in io.github.srcimon.screwbox.core.environment.audio
- SoundSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.audio.SoundSystem
- source() - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Returns the source
Entity
of this particle. - source(Entity) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Sets the source
Entity
of the particle. - sourceFormat() - Method in class io.github.srcimon.screwbox.core.audio.Sound
-
Returns the
Sound.SourceFormat
of theSound
. - SourceImport<T> - Class in io.github.srcimon.screwbox.core.environment
- SourceImport(List<T>, Environment) - Constructor for class io.github.srcimon.screwbox.core.environment.SourceImport
- SourceImport.ConditionalSourceImport - Class in io.github.srcimon.screwbox.core.environment
- SourceImport.Converter<T> - Interface in io.github.srcimon.screwbox.core.environment
- SourceImport.IndexSourceImport<M> - Class in io.github.srcimon.screwbox.core.environment
- SourceImport.MatchingSourceImportWithKey<M> - Class in io.github.srcimon.screwbox.core.environment
- SPACE - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- SPARKLE - Enum constant in enum class io.github.srcimon.screwbox.core.Ease
-
Sparkling effect.
- spawn(Bounds, ParticleOptions) - Method in interface io.github.srcimon.screwbox.core.particles.Particles
-
Spawns a new particles into the
Environment
using a random position within the givenBounds
. - spawn(Bounds, Supplier<ParticleOptions>) - Method in interface io.github.srcimon.screwbox.core.particles.Particles
-
Spawns a new particles into the
Environment
using a random position within the givenBounds
. - spawn(Vector, ParticleOptions) - Method in interface io.github.srcimon.screwbox.core.particles.Particles
-
Spawns a new particle into the
Environment
using the given position. - spawn(Vector, Supplier<ParticleOptions>) - Method in interface io.github.srcimon.screwbox.core.particles.Particles
-
Spawns a new particle into the
Environment
using the given position. - spawnArea() - Method in interface io.github.srcimon.screwbox.core.particles.Particles
-
Returns the area within particles are spawned.
- spawnArea(Bounds) - Method in enum class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent.SpawnMode
- spawnDistance() - Method in interface io.github.srcimon.screwbox.core.particles.Particles
-
Returns the current distance that particles will be spawened outside the field of vision.
- spawnMode - Variable in class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent
- spawnMultiple(int, Bounds, ParticleOptions) - Method in interface io.github.srcimon.screwbox.core.particles.Particles
-
Spawns multiple new particles into the
Environment
using a random position within the givenBounds
. - spawnMultiple(int, Bounds, Supplier<ParticleOptions>) - Method in interface io.github.srcimon.screwbox.core.particles.Particles
-
Spawns multiple new particles into the
Environment
using a random position within the givenBounds
. - spawnMultiple(int, Vector, ParticleOptions) - Method in interface io.github.srcimon.screwbox.core.particles.Particles
-
Spawns multiple new particles into the
Environment
using the given position. - spawnMultiple(int, Vector, Supplier<ParticleOptions>) - Method in interface io.github.srcimon.screwbox.core.particles.Particles
-
Spawns multiple new particles into the
Environment
using the given position. - speed - Variable in class io.github.srcimon.screwbox.core.environment.physics.ChaoticMovementComponent
- speed - Variable in class io.github.srcimon.screwbox.core.environment.physics.MovementPathComponent
- speed() - Method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Returns the value of the
speed
record component. - speed(double) - Method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Sets the speed of the playback.
- SPLASH - Enum constant in enum class io.github.srcimon.screwbox.core.audio.SoundBundle
- SpotLightComponent - Class in io.github.srcimon.screwbox.core.environment.light
- SpotLightComponent(double) - Constructor for class io.github.srcimon.screwbox.core.environment.light.SpotLightComponent
- SpotLightComponent(double, Color) - Constructor for class io.github.srcimon.screwbox.core.environment.light.SpotLightComponent
- sprite - Variable in class io.github.srcimon.screwbox.core.environment.rendering.RenderComponent
- sprite() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteBatch.SpriteBatchEntry
-
Returns the value of the
sprite
record component. - sprite(Sprite) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Sets the
Sprite
that is used for particle entities. - sprite(Supplier<Sprite>) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Sets the
Sprite
that is used for particle entities. - Sprite - Class in io.github.srcimon.screwbox.core.graphics
- Sprite(Frame) - Constructor for class io.github.srcimon.screwbox.core.graphics.Sprite
- Sprite(List<Frame>) - Constructor for class io.github.srcimon.screwbox.core.graphics.Sprite
- SpriteBatch - Class in io.github.srcimon.screwbox.core.graphics
-
Container for multiple sorted
sprites
. - SpriteBatch() - Constructor for class io.github.srcimon.screwbox.core.graphics.SpriteBatch
- SpriteBatch.SpriteBatchEntry - Record Class in io.github.srcimon.screwbox.core.graphics
-
A single entry in a
SpriteBatch
. - SpriteBatchEntry(Sprite, Offset, SpriteDrawOptions, int) - Constructor for record class io.github.srcimon.screwbox.core.graphics.SpriteBatch.SpriteBatchEntry
-
Creates an instance of a
SpriteBatchEntry
record class. - SpriteBundle - Enum Class in io.github.srcimon.screwbox.core.graphics
- SpriteDrawOptions - Record Class in io.github.srcimon.screwbox.core.graphics
-
Customize the drawing of
Sprite
s. - SpriteDrawOptions(double, Percent, Rotation, boolean, boolean) - Constructor for record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Creates an instance of a
SpriteDrawOptions
record class. - SpriteFadeAnimation - Class in io.github.srcimon.screwbox.core.scenes.animations
- SpriteFadeAnimation(Sprite) - Constructor for class io.github.srcimon.screwbox.core.scenes.animations.SpriteFadeAnimation
-
Fades to the specified
Sprite
. - SpriteFillOptions - Record Class in io.github.srcimon.screwbox.core.graphics
- SpriteFillOptions(Offset, double, Percent) - Constructor for record class io.github.srcimon.screwbox.core.graphics.SpriteFillOptions
-
Creates an instance of a
SpriteFillOptions
record class. - spriteFor(char) - Method in class io.github.srcimon.screwbox.core.graphics.Pixelfont
-
Returns the sprite for the given
Character
. - sprites(Sprite...) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Sets multiple
Sprite
s that are randomly used for particle entities. - sprites(Supplier<Sprite>...) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Sets multiple
Sprite
s that are randomly used for particle entities. - sprites(List<Sprite>) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Sets multiple
Sprite
s that are randomly used for particle entities. - spritesFor(String) - Method in class io.github.srcimon.screwbox.core.graphics.Pixelfont
-
Returns the
sprites
for the specified text. - square(int) - Static method in class io.github.srcimon.screwbox.core.graphics.Size
- STANDARD - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.AspectRatio
- start() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Starts the
Engine
. - startOpacity(Percent) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
- startScale(double) - Method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Sets the initial scale of the particle.
- startTime - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenComponent
- startTime() - Method in interface io.github.srcimon.screwbox.core.loop.Loop
-
Returns the time the
Loop
was started for the last time. - state - Variable in class io.github.srcimon.screwbox.core.environment.logic.StateComponent
- StateComponent - Class in io.github.srcimon.screwbox.core.environment.logic
- StateComponent(EntityState) - Constructor for class io.github.srcimon.screwbox.core.environment.logic.StateComponent
- StateSystem - Class in io.github.srcimon.screwbox.core.environment.logic
- StateSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.logic.StateSystem
- StaticColliderComponent - Class in io.github.srcimon.screwbox.core.environment.physics
- StaticColliderComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.physics.StaticColliderComponent
- StaticShadowCasterComponent - Class in io.github.srcimon.screwbox.core.environment.light
- StaticShadowCasterComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.light.StaticShadowCasterComponent
- STEAM - Enum constant in enum class io.github.srcimon.screwbox.core.audio.SoundBundle
- stop() - Method in interface io.github.srcimon.screwbox.core.Engine
- stopAllPlaybacks() - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Stops all currently
Audio.activePlaybacks()
. - stopAllPlaybacks(Sound) - Method in interface io.github.srcimon.screwbox.core.audio.Audio
- stopAllPlaybacks(Supplier<Sound>) - Method in interface io.github.srcimon.screwbox.core.audio.Audio
- stopPlayback(Playback) - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Stops a single
Playback
. - stopShaking() - Method in interface io.github.srcimon.screwbox.core.graphics.Camera
-
Stops any
Camera
if there is currently shake in progress. - stopUsingIndex() - Method in class io.github.srcimon.screwbox.core.environment.SourceImport.IndexSourceImport
- strength(double) - Method in record class io.github.srcimon.screwbox.core.graphics.CameraShakeOptions
-
Set the x- and the y-strength of the shake.
- strokeWidth() - Method in record class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions
-
Returns the value of the
strokeWidth
record component. - strokeWidth() - Method in record class io.github.srcimon.screwbox.core.graphics.LineDrawOptions
-
Returns the value of the
strokeWidth
record component. - strokeWidth() - Method in record class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions
-
Returns the value of the
strokeWidth
record component. - strokeWidth(int) - Method in record class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions
-
Sets the
CircleDrawOptions.strokeWidth()
when drawingCircleDrawOptions.outline(Color)
. - strokeWidth(int) - Method in record class io.github.srcimon.screwbox.core.graphics.LineDrawOptions
-
Returns new instance with new
LineDrawOptions.strokeWidth()
. - strokeWidth(int) - Method in record class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions
-
Sets the
RectangleDrawOptions.strokeWidth()
when drawingRectangleDrawOptions.outline(Color)
. - style() - Method in record class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions
-
Returns the value of the
style
record component. - style() - Method in record class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions
-
Returns the value of the
style
record component. - substract(double) - Method in class io.github.srcimon.screwbox.core.Percent
-
Returns a new instance with the current value minus the given value.
- substract(Offset) - Method in class io.github.srcimon.screwbox.core.graphics.Offset
- substract(Vector) - Method in class io.github.srcimon.screwbox.core.Vector
- supportedResolutions() - Method in interface io.github.srcimon.screwbox.core.graphics.Graphics
-
Returns a list of all supported resolutions.
- supportedResolutions(AspectRatio) - Method in interface io.github.srcimon.screwbox.core.graphics.Graphics
-
Returns a list of all supported resolutions of the given
AspectRatio
. - switchTo(Class<? extends Scene>) - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
-
Switches directly to another existing
Scene
that has previously been added without using aSceneTransition
. - switchTo(Class<? extends Scene>, SceneTransition) - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
-
Switches to another existing
Scene
that has previously been added. - switchTo(Class<? extends Scene>, Supplier<SceneTransition>) - Method in interface io.github.srcimon.screwbox.core.scenes.Scenes
-
Switches to another existing
Scene
that has previously been added. - systemFont(String) - Static method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Creates a new instance with given
SystemTextDrawOptions.fontName()
andSystemTextDrawOptions.size()
10. - systemFont(String, int) - Static method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Creates a new instance with given
SystemTextDrawOptions.fontName()
and givenSystemTextDrawOptions.size()
. - systems() - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Returns all
EntitySystem
s currently attached. - SystemTextDrawOptions - Record Class in io.github.srcimon.screwbox.core.graphics
-
Customize the drawing of texts with system fonts.
- SystemTextDrawOptions(String, int, boolean, boolean, Color, SystemTextDrawOptions.Alignment) - Constructor for record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Creates an instance of a
SystemTextDrawOptions
record class. - SystemTextDrawOptions.Alignment - Enum Class in io.github.srcimon.screwbox.core.graphics
-
Alignment of the text.
T
- T - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- takeScreenshot() - Method in interface io.github.srcimon.screwbox.core.graphics.Screen
-
Takes a sceenshot of the whole
Screen
. - targetFps() - Method in interface io.github.srcimon.screwbox.core.loop.Loop
-
Returns the current target frames per second.
- targetId - Variable in class io.github.srcimon.screwbox.core.environment.physics.AttachmentComponent
- TARGETS - Static variable in class io.github.srcimon.screwbox.core.environment.physics.MovementTargetSystem
- taskCount() - Method in interface io.github.srcimon.screwbox.core.async.Async
-
Returns the current count of active tasks.
- TextDrawOptions - Record Class in io.github.srcimon.screwbox.core.graphics
-
Customize the drawing of texts using a
Pixelfont
. - TextDrawOptions(Pixelfont, int, double, boolean, Percent, TextDrawOptions.Alignment, int, int) - Constructor for record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Creates an instance of a
TextDrawOptions
record class. - TextDrawOptions.Alignment - Enum Class in io.github.srcimon.screwbox.core.graphics
-
Alignment of the text.
- TextUtil - Class in io.github.srcimon.screwbox.core.utils
-
Utils to help you with texts.
- threeQuarter() - Static method in class io.github.srcimon.screwbox.core.Percent
-
Returns 75 percent.
- Time - Class in io.github.srcimon.screwbox.core
- Time.Unit - Enum Class in io.github.srcimon.screwbox.core
-
Different time units.
- TimeoutCache<K,
V> - Class in io.github.srcimon.screwbox.core.utils - TimeoutCache(Duration) - Constructor for class io.github.srcimon.screwbox.core.utils.TimeoutCache
- times() - Method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Returns the value of the
times
record component. - title() - Method in interface io.github.srcimon.screwbox.core.window.Window
-
Returns the title of the
Window
. - TNT_TICKING - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
- to - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenLightComponent
- to - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenOpacityComponent
- to - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenPositionComponent
- to - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenScaleComponent
- to() - Method in class io.github.srcimon.screwbox.core.Line
-
The endpoint of the
Line
. - toggle() - Method in class io.github.srcimon.screwbox.core.utils.Latch
-
Toggles between active and inactive value.
- toggle() - Method in class io.github.srcimon.screwbox.core.utils.TrippleLatch
- toggleAntialising() - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
-
Toggles the antialising on/off.
- toggleFullscreen() - Method in class io.github.srcimon.screwbox.core.graphics.GraphicsConfiguration
- toggleSystem(EntitySystem) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- toGrid(Vector) - Method in class io.github.srcimon.screwbox.core.Grid
- toOffset(Vector) - Method in interface io.github.srcimon.screwbox.core.graphics.Graphics
- TOP_ONLY - Enum constant in enum class io.github.srcimon.screwbox.core.physics.Borders
- TOP_SIDE - Enum constant in enum class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent.SpawnMode
- toPosition(Offset) - Method in interface io.github.srcimon.screwbox.core.graphics.Graphics
- topRight() - Method in class io.github.srcimon.screwbox.core.Bounds
- toScreen(Bounds) - Method in interface io.github.srcimon.screwbox.core.graphics.Graphics
- toScreenUsingParallax(Bounds, double, double) - Method in interface io.github.srcimon.screwbox.core.graphics.Graphics
-
Retruns the corresponding
ScreenBounds
of the specifiedBounds
using a parallax-effect. - toString() - Method in class io.github.srcimon.screwbox.core.assets.AssetLocation
- toString() - Method in record class io.github.srcimon.screwbox.core.audio.Playback
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Returns a string representation of this record class.
- toString() - Method in class io.github.srcimon.screwbox.core.Bounds
- toString() - Method in class io.github.srcimon.screwbox.core.Duration
- toString() - Method in class io.github.srcimon.screwbox.core.environment.Archetype
- toString() - Method in class io.github.srcimon.screwbox.core.environment.Entity
- toString() - Method in record class io.github.srcimon.screwbox.core.graphics.CameraShakeOptions
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions
-
Returns a string representation of this record class.
- toString() - Method in class io.github.srcimon.screwbox.core.graphics.Color
- toString() - Method in record class io.github.srcimon.screwbox.core.graphics.LineDrawOptions
-
Returns a string representation of this record class.
- toString() - Method in class io.github.srcimon.screwbox.core.graphics.Offset
- toString() - Method in record class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.srcimon.screwbox.core.graphics.ScreenBounds
-
Returns a string representation of this record class.
- toString() - Method in class io.github.srcimon.screwbox.core.graphics.Size
- toString() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteBatch.SpriteBatchEntry
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteDrawOptions
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.srcimon.screwbox.core.graphics.SpriteFillOptions
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.srcimon.screwbox.core.Grid.Node
-
Returns a string representation of this record class.
- toString() - Method in class io.github.srcimon.screwbox.core.Line
- toString() - Method in class io.github.srcimon.screwbox.core.Percent
- toString() - Method in class io.github.srcimon.screwbox.core.Rotation
- toString() - Method in record class io.github.srcimon.screwbox.core.scenes.SceneTransition
-
Returns a string representation of this record class.
- toString() - Method in class io.github.srcimon.screwbox.core.Time
- toString() - Method in class io.github.srcimon.screwbox.core.Vector
- toString() - Method in record class io.github.srcimon.screwbox.core.window.FilesDropedOnWindow
-
Returns a string representation of this record class.
- touches(Bounds) - Method in class io.github.srcimon.screwbox.core.Bounds
- TransformComponent - Class in io.github.srcimon.screwbox.core.environment.core
- TransformComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.core.TransformComponent
- TransformComponent(double, double, double, double) - Constructor for class io.github.srcimon.screwbox.core.environment.core.TransformComponent
- TransformComponent(Bounds) - Constructor for class io.github.srcimon.screwbox.core.environment.core.TransformComponent
- TransformComponent(Vector) - Constructor for class io.github.srcimon.screwbox.core.environment.core.TransformComponent
- TransformComponent(Vector, double, double) - Constructor for class io.github.srcimon.screwbox.core.environment.core.TransformComponent
- TRANSPARENT - Static variable in class io.github.srcimon.screwbox.core.graphics.Color
-
A transparent color.
- trigger(Engine) - Method in class io.github.srcimon.screwbox.core.ui.UiMenuItem
- TriggerAreaComponent - Class in io.github.srcimon.screwbox.core.environment.logic
- TriggerAreaComponent(Archetype) - Constructor for class io.github.srcimon.screwbox.core.environment.logic.TriggerAreaComponent
- triggeredBy - Variable in class io.github.srcimon.screwbox.core.environment.logic.TriggerAreaComponent
- TrippleLatch<T> - Class in io.github.srcimon.screwbox.core.utils
- tryFetchById(int) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Fetches an
Entity
byEntity.id()
. - tryFetchSingleton(Archetype) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
- tryFetchSingleton(Class<? extends Component>) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Returns an
Entity
that is expected to be the onlyEntity
in theEnvironment
that contains the given singletonComponent
. - tryFetchSingletonComponent(Class<T>) - Method in interface io.github.srcimon.screwbox.core.environment.Environment
-
Returns a
Component
that is expected not have more than on instance in theEnvironment
. - tryToCombine(Bounds, Bounds) - Static method in class io.github.srcimon.screwbox.core.utils.GeometryUtil
- tryToCreateAt(Field) - Static method in class io.github.srcimon.screwbox.core.assets.AssetLocation
-
Tries to create an
AssetLocation
from aField
. - TweenComponent - Class in io.github.srcimon.screwbox.core.environment.tweening
-
Adds tweening to an
Entity
. - TweenComponent(Duration) - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenComponent
- TweenComponent(Duration, Ease) - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenComponent
- TweenComponent(Duration, Ease, boolean) - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenComponent
- TweenComponent(Duration, Ease, boolean, boolean) - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenComponent
- TweenDestroyComponent - Class in io.github.srcimon.screwbox.core.environment.tweening
-
Marks an
Entity
for removal at the end of a tween. - TweenDestroyComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenDestroyComponent
- TweenDestroySystem - Class in io.github.srcimon.screwbox.core.environment.tweening
-
Removes all
Entity
s that have ended tweening and have anTweenDestroyComponent
. - TweenDestroySystem() - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenDestroySystem
- TweenLightComponent - Class in io.github.srcimon.screwbox.core.environment.tweening
-
Links tweening to the opacity of the
SpotLightComponent
,GlowComponent
,PointLightComponent
andConeLightComponent
of anEntity
. - TweenLightComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenLightComponent
- TweenLightComponent(Percent, Percent) - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenLightComponent
- TweenLightSystem - Class in io.github.srcimon.screwbox.core.environment.tweening
-
Updates the opacity of all light components of an
Entity
, that use tweening and have anTweenLightComponent
. - TweenLightSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenLightSystem
- TweenOpacityComponent - Class in io.github.srcimon.screwbox.core.environment.tweening
-
Links tweening to the opacity of the
RenderComponent
of anEntity
. - TweenOpacityComponent() - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenOpacityComponent
- TweenOpacityComponent(Percent, Percent) - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenOpacityComponent
- TweenOpacitySystem - Class in io.github.srcimon.screwbox.core.environment.tweening
-
Updates the
SpriteDrawOptions.opacity()
of allEntity
s that use tweening and have anTweenOpacityComponent
. - TweenOpacitySystem() - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenOpacitySystem
- TweenOrbitPositionComponent - Class in io.github.srcimon.screwbox.core.environment.tweening
-
Links tweening to the position of the
TransformComponent
of anEntity
around a center position. - TweenOrbitPositionComponent(Vector, double) - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenOrbitPositionComponent
- TweenPositionComponent - Class in io.github.srcimon.screwbox.core.environment.tweening
-
Links tweening to the position of the
TransformComponent
of anEntity
. - TweenPositionComponent(Vector, Vector) - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenPositionComponent
- TweenPositionSystem - Class in io.github.srcimon.screwbox.core.environment.tweening
-
Updates the postion of all
Entity
s that use tweening and have anTweenPositionComponent
orTweenOrbitPositionComponent
. - TweenPositionSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenPositionSystem
- TweenScaleComponent - Class in io.github.srcimon.screwbox.core.environment.tweening
- TweenScaleComponent(double, double) - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenScaleComponent
- TweenScaleSystem - Class in io.github.srcimon.screwbox.core.environment.tweening
-
Updates the
SpriteDrawOptions.scale()
of allEntity
s that use tweening and have anTweenScaleComponent
. - TweenScaleSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenScaleSystem
- TweenSystem - Class in io.github.srcimon.screwbox.core.environment.tweening
-
Updates the state
TweenComponent
s in theEnvironment
. - TweenSystem() - Constructor for class io.github.srcimon.screwbox.core.environment.tweening.TweenSystem
U
- U - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- ui() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Create simple ingame menus.
- Ui - Interface in io.github.srcimon.screwbox.core.ui
-
Create simple ingame menus.
- UiInteractor - Interface in io.github.srcimon.screwbox.core.ui
- UiLayouter - Interface in io.github.srcimon.screwbox.core.ui
- UiMenu - Class in io.github.srcimon.screwbox.core.ui
- UiMenu() - Constructor for class io.github.srcimon.screwbox.core.ui.UiMenu
- UiMenuItem - Class in io.github.srcimon.screwbox.core.ui
- UiRenderer - Interface in io.github.srcimon.screwbox.core.ui
- unitsScrolled() - Method in interface io.github.srcimon.screwbox.core.mouse.Mouse
-
Returns the count of units scolled since the last frame.
- unknownSource() - Static method in class io.github.srcimon.screwbox.core.particles.ParticleOptions
-
Creates a new instance without
ParticleOptions.source()
. - unload() - Method in class io.github.srcimon.screwbox.core.assets.Asset
-
Removes already loaded content.
- unlockFps() - Method in interface io.github.srcimon.screwbox.core.loop.Loop
-
Sets the games target frames per second to
Integer.MAX_VALUE
which is as good as unlimited. - unmute() - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Unmutes all playback.
- unmuteEffects() - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Unmutes effects playback.
- unmuteMusic() - Method in class io.github.srcimon.screwbox.core.audio.AudioConfiguration
-
Unmutes music playback.
- unset() - Static method in class io.github.srcimon.screwbox.core.Time
-
Returns the a new instance of the oldest possible
Time
. - update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.audio.SoundSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.core.LogFpsSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.core.QuitOnKeySystem
- update(Engine) - Method in interface io.github.srcimon.screwbox.core.environment.EntitySystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.light.LightRenderSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.light.OptimizeLightPerformanceSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.logic.AreaTriggerSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.logic.StateSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.particles.ParticleBurstSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.particles.ParticleDebugSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.particles.ParticleInteractionSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.physics.AttachmentSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.physics.ChaoticMovementSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.physics.CollisionDetectionSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.physics.CursorAttachmentSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.physics.GravitySystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.physics.MagnetSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.physics.MovementPathDebugSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.physics.MovementPathSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.physics.MovementTargetSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.physics.OptimizePhysicsPerformanceSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.physics.PhysicsGridUpdateSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.physics.PhysicsSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.rendering.CameraSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.rendering.FixedRotationSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.rendering.FlipSpriteSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.rendering.MovementRotationSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.rendering.ReflectionRenderSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.rendering.RenderSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.tweening.TweenDestroySystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.tweening.TweenLightSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.tweening.TweenOpacitySystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.tweening.TweenPositionSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.tweening.TweenScaleSystem
- update(Engine) - Method in class io.github.srcimon.screwbox.core.environment.tweening.TweenSystem
- update(Entity, Engine) - Method in interface io.github.srcimon.screwbox.core.environment.logic.EntityState
- updateDuration() - Method in interface io.github.srcimon.screwbox.core.loop.Loop
-
Returns the
Duration
that the last update took. - updatePlaybackOptions(Playback, SoundOptions) - Method in interface io.github.srcimon.screwbox.core.audio.Audio
-
Changes the
SoundOptions
of the specifiedPlayback
. - updateSheduler - Variable in class io.github.srcimon.screwbox.core.environment.physics.PhysicsGridConfigurationComponent
- uppercase() - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Creates a new instance with all uppercase characters.
- usePingPong - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenComponent
- useWaveEffect - Variable in class io.github.srcimon.screwbox.core.environment.rendering.ReflectionComponent
- usingIndex(Function<T, M>) - Method in class io.github.srcimon.screwbox.core.environment.SourceImport
V
- V - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- Validate - Class in io.github.srcimon.screwbox.core.utils
-
Used for validating input values.
- value - Variable in class io.github.srcimon.screwbox.core.environment.tweening.TweenComponent
- value() - Element in annotation interface io.github.srcimon.screwbox.core.environment.Order
- value() - Method in class io.github.srcimon.screwbox.core.Percent
-
Returns the represented value betweeen 0.0 and 1.0.
- value(double) - Static method in class io.github.srcimon.screwbox.core.utils.Pixelperfect
- value(Time) - Method in class io.github.srcimon.screwbox.core.utils.Noise
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.assets.FontBundle
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.audio.AudioConfigurationEvent.ConfigurationProperty
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.audio.Sound.SourceFormat
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.audio.SoundBundle
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.Ease
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent.SpawnMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.graphics.AspectRatio
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions.Style
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.graphics.GraphicsConfigurationEvent.ConfigurationProperty
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions.Style
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions.Alignment
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.graphics.TextDrawOptions.Alignment
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.keyboard.Key
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.log.LogLevel
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.mouse.MouseButton
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.particles.ParticleOptionsBundle
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.physics.Borders
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.Time.Unit
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.srcimon.screwbox.core.window.MouseCursor
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.github.srcimon.screwbox.core.assets.FontBundle
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.audio.AudioConfigurationEvent.ConfigurationProperty
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.audio.Sound.SourceFormat
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.audio.SoundBundle
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.Ease
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.environment.Order.SystemOrder
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.environment.particles.ParticleEmitterComponent.SpawnMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.graphics.AspectRatio
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.graphics.CircleDrawOptions.Style
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.graphics.GraphicsConfigurationEvent.ConfigurationProperty
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.graphics.RectangleDrawOptions.Style
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.graphics.SpriteBundle
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.graphics.SystemTextDrawOptions.Alignment
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.graphics.TextDrawOptions.Alignment
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.keyboard.Key
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.log.LogLevel
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.mouse.MouseButton
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.particles.ParticleOptionsBundle
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.physics.Borders
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.Time.Unit
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.srcimon.screwbox.core.window.MouseCursor
-
Returns an array containing the constants of this enum class, in the order they are declared.
- variableInterval(Duration) - Static method in class io.github.srcimon.screwbox.core.utils.Noise
- vector(Vector) - Static method in class io.github.srcimon.screwbox.core.utils.Pixelperfect
- Vector - Class in io.github.srcimon.screwbox.core
-
The
Vector
represents a position or a distance in the 2d world. - version() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Returns the version of the used
ScrewBox
runtime. - VERTICAL_ONLY - Enum constant in enum class io.github.srcimon.screwbox.core.physics.Borders
- visibleArea() - Method in interface io.github.srcimon.screwbox.core.graphics.World
-
Returns the area currently visible on the
Screen
. - volume() - Method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Returns the value of the
volume
record component. - volume(Percent) - Method in record class io.github.srcimon.screwbox.core.audio.SoundOptions
-
Sets the volume of the playback.
W
- W - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- warn(String) - Method in interface io.github.srcimon.screwbox.core.log.Log
-
Logs a message using
LogLevel.WARNING
. - WARNING - Enum constant in enum class io.github.srcimon.screwbox.core.log.LogLevel
-
Used when something isn't right.
- WATER - Enum constant in enum class io.github.srcimon.screwbox.core.audio.SoundBundle
- WAV_MONO - Enum constant in enum class io.github.srcimon.screwbox.core.audio.Sound.SourceFormat
- WAV_STEREO - Enum constant in enum class io.github.srcimon.screwbox.core.audio.Sound.SourceFormat
- when(Predicate<T>) - Method in class io.github.srcimon.screwbox.core.environment.SourceImport
- when(M) - Method in class io.github.srcimon.screwbox.core.environment.SourceImport.IndexSourceImport
- WHITE - Static variable in class io.github.srcimon.screwbox.core.graphics.Color
-
The color white.
- WIDESCREEN - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.AspectRatio
- width() - Method in class io.github.srcimon.screwbox.core.Bounds
-
Returns the width of this
Bounds
. - width() - Method in class io.github.srcimon.screwbox.core.graphics.Size
-
The width of this
Size
. - width() - Method in interface io.github.srcimon.screwbox.core.graphics.Sizeable
-
Get the width.
- width() - Method in class io.github.srcimon.screwbox.core.Grid
- widthOf(String) - Method in record class io.github.srcimon.screwbox.core.graphics.TextDrawOptions
-
Returns the width of the given text renderd with this
TextDrawOptions
. - window() - Method in interface io.github.srcimon.screwbox.core.Engine
-
Used to control the game window and retrieve information about the game window.
- Window - Interface in io.github.srcimon.screwbox.core.window
-
Used to control the game window and retrieve information about the game window.
- WINDOW_MODE - Enum constant in enum class io.github.srcimon.screwbox.core.graphics.GraphicsConfigurationEvent.ConfigurationProperty
- withInterval(Duration) - Static method in class io.github.srcimon.screwbox.core.utils.Sheduler
-
Creates a new
Sheduler
with the given interval. - withNodes(List<Vector>) - Static method in class io.github.srcimon.screwbox.core.Path
- WobblyUiLayouter - Class in io.github.srcimon.screwbox.core.ui
- WobblyUiLayouter() - Constructor for class io.github.srcimon.screwbox.core.ui.WobblyUiLayouter
- world() - Method in interface io.github.srcimon.screwbox.core.graphics.Graphics
-
Access drawing operations on the game world.
- World - Interface in io.github.srcimon.screwbox.core.graphics
- worldArea(Grid.Node) - Method in class io.github.srcimon.screwbox.core.Grid
- worldBounds - Variable in class io.github.srcimon.screwbox.core.environment.physics.PhysicsGridConfigurationComponent
- worldPosition(Grid.Node) - Method in class io.github.srcimon.screwbox.core.Grid
- wsadMovement(double) - Method in interface io.github.srcimon.screwbox.core.keyboard.Keyboard
-
Returns the resulting
Vector
of a WSAD-movement scheme with the given length.
X
- x() - Method in class io.github.srcimon.screwbox.core.graphics.Offset
-
The x-coordinate of the
Offset
. - x() - Method in record class io.github.srcimon.screwbox.core.Grid.Node
-
Returns the value of the
x
record component. - x() - Method in class io.github.srcimon.screwbox.core.Vector
-
Returns the x-component of the
Vector
. - x(double) - Static method in class io.github.srcimon.screwbox.core.Vector
-
Returns a new
Vector
with only anVector.x
-component. - X - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- xModifier - Variable in class io.github.srcimon.screwbox.core.environment.physics.ChaoticMovementComponent
- xStrength() - Method in record class io.github.srcimon.screwbox.core.graphics.CameraShakeOptions
-
Returns the value of the
xStrength
record component. - xStrength(double) - Method in record class io.github.srcimon.screwbox.core.graphics.CameraShakeOptions
-
Set the x-strength of the shake.
Y
- y() - Method in class io.github.srcimon.screwbox.core.graphics.Offset
-
The y-coordinate of the
Offset
. - y() - Method in record class io.github.srcimon.screwbox.core.Grid.Node
-
Returns the value of the
y
record component. - y() - Method in class io.github.srcimon.screwbox.core.Vector
-
Returns the y-component of the
Vector
. - y(double) - Static method in class io.github.srcimon.screwbox.core.Vector
-
Returns a new
Vector
with only anVector.y
-component. - Y - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- YELLOW - Static variable in class io.github.srcimon.screwbox.core.graphics.Color
-
The color yellow.
- yModifier - Variable in class io.github.srcimon.screwbox.core.environment.physics.ChaoticMovementComponent
- yStrength() - Method in record class io.github.srcimon.screwbox.core.graphics.CameraShakeOptions
-
Returns the value of the
yStrength
record component. - yStrength(double) - Method in record class io.github.srcimon.screwbox.core.graphics.CameraShakeOptions
-
Set the y-strength of the shake.
Z
- Z - Enum constant in enum class io.github.srcimon.screwbox.core.keyboard.Key
- zero() - Static method in class io.github.srcimon.screwbox.core.Percent
-
Returns 0 percent.
- zero() - Static method in class io.github.srcimon.screwbox.core.Vector
-
Creates a new Instance of
Vector
at coordinates 0:0. - zeroOrPositive(double, String) - Static method in class io.github.srcimon.screwbox.core.utils.Validate
-
Value must zero or positive double.
- zeroOrPositive(int, String) - Static method in class io.github.srcimon.screwbox.core.utils.Validate
-
Value must zero or positive int.
- ZISCH - Enum constant in enum class io.github.srcimon.screwbox.core.audio.SoundBundle
- zoom() - Method in interface io.github.srcimon.screwbox.core.graphics.Camera
-
Returns the currently used camera zoom.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form