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 ClassesModifier and TypeClassDescriptionstatic interfaceThe factory interface for creatingPowerBlockRelocatorinstances.Nested classes/interfaces inherited from class ToolUser
ToolUser.Context -
Field Summary
Fields inherited from class ToolUser
animatedArchitectureToolUtil, localizer, protectionHookManager, stepFactory, toolUserManager -
Constructor Summary
ConstructorsConstructorDescriptionPowerBlockRelocator(ToolUser.Context context, IPlayer player, Structure structure) -
Method Summary
Methods inherited from class 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
-