Class ScriptedSpawner.PropBuilder
java.lang.Object
de.gurkenlabs.litiengine.scripting.ScriptedSpawner.EntityBuilder<Prop>
de.gurkenlabs.litiengine.scripting.ScriptedSpawner.PropBuilder
- Enclosing class:
ScriptedSpawner
Type-preserving builder for props.
-
Field Summary
Fields inherited from class ScriptedSpawner.EntityBuilder
customizer, env, factory, health, location, name, renderType, tags -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat(double x, double y) Sets the spawn coordinates.Sets the spawn location.Sets an operation invoked after standard configuration but before insertion.Sets the entity name.Sets tags to add to the entity.Methods inherited from class ScriptedSpawner.EntityBuilder
spawn, withHealth, withRenderType
-
Constructor Details
-
PropBuilder
Creates a prop builder.- Parameters:
env- The destination environment.spriteSheet- The spritesheet name.
-
-
Method Details
-
at
Description copied from class:ScriptedSpawner.EntityBuilderSets the spawn coordinates.- Overrides:
atin classScriptedSpawner.EntityBuilder<Prop>- Parameters:
x- The map x-coordinate.y- The map y-coordinate.- Returns:
- This builder.
-
at
Description copied from class:ScriptedSpawner.EntityBuilderSets the spawn location.- Overrides:
atin classScriptedSpawner.EntityBuilder<Prop>- Parameters:
location- The location in map coordinates;nullleaves it unchanged.- Returns:
- This builder.
-
withName
Description copied from class:ScriptedSpawner.EntityBuilderSets the entity name.- Overrides:
withNamein classScriptedSpawner.EntityBuilder<Prop>- Parameters:
name- The name to assign.- Returns:
- This builder.
-
withTags
Description copied from class:ScriptedSpawner.EntityBuilderSets tags to add to the entity.- Overrides:
withTagsin classScriptedSpawner.EntityBuilder<Prop>- Parameters:
tags- The tags; null entries are ignored.- Returns:
- This builder.
-
configure
Description copied from class:ScriptedSpawner.EntityBuilderSets an operation invoked after standard configuration but before insertion.- Overrides:
configurein classScriptedSpawner.EntityBuilder<Prop>- Parameters:
customizer- The customizer, ornullfor none.- Returns:
- This builder.
-