Class PowerBlockRelocator
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.tooluser.ToolUser
nl.pim16aap2.animatedarchitecture.core.tooluser.PowerBlockRelocator
Represents a tool user that relocates a powerblock to a new position.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class nl.pim16aap2.animatedarchitecture.core.tooluser.ToolUser
ToolUser.Context -
Field Summary
Fields inherited from class nl.pim16aap2.animatedarchitecture.core.tooluser.ToolUser
animatedArchitectureToolUtil, localizer, protectionHookManager, stepFactory, textFactory, toolUserManager -
Constructor Summary
ConstructorsConstructorDescriptionPowerBlockRelocator(ToolUser.Context context, IPlayer player, Structure structure) -
Method Summary
Modifier and TypeMethodDescriptionGenerates the list ofSteps that together will make up theToolUser.procedure.protected final @Nullable ILocationGets the new location of the powerblock.protected CompletableFuture<Boolean> toString()Methods inherited from class nl.pim16aap2.animatedarchitecture.core.tooluser.ToolUser
abort, assertLockHeld, cleanUpProcess, getAllSteps, getCurrentStep, getCurrentStepMessage, getPlayer, giveTool, goToNextStep, handleInput, handleInputWithLock, init, insertStep, isActive, playerHasAccessToCuboid, playerHasAccessToLocation, playerHasTool, prepareCurrentStep, removeTool, runWithLock, sendMessage, sendMessage, setPlayerHasTool, skipToStep, toMinimalString
-
Constructor Details
-
PowerBlockRelocator
@AssistedInject public PowerBlockRelocator(ToolUser.Context context, @Assisted IPlayer player, @Assisted Structure structure)
-
-
Method Details
-
moveToLoc
-
generateSteps
Description copied from class:ToolUserGenerates the list ofSteps that together will make up theToolUser.procedure.- Specified by:
generateStepsin classToolUser- Returns:
- The list of
Steps that together will make up theToolUser.procedure. - Throws:
InstantiationException- When a step's factory is incomplete or otherwise invalid.
-
getNewLoc
Gets the new location of the powerblock.- Returns:
- The new location of the powerblock. May be
nullif the powerblock has not been relocated yet.
-
toString
-