Class CreatorSlidingDoor
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.tooluser.ToolUser
nl.pim16aap2.animatedarchitecture.core.tooluser.creator.Creator
nl.pim16aap2.animatedarchitecture.structures.slidingdoor.CreatorSlidingDoor
Implementation of the
Creator class for the SlidingDoor structure.-
Nested Class Summary
Nested classes/interfaces inherited from class nl.pim16aap2.animatedarchitecture.core.tooluser.ToolUser
ToolUser.Context -
Field Summary
Fields inherited from class nl.pim16aap2.animatedarchitecture.core.tooluser.creator.Creator
commandFactory, databaseManager, economyManager, factoryCompleteProcess, factoryConfirmPrice, factoryProvideFirstPos, factoryProvideName, factoryProvideOpenDir, factoryProvideOpenStatus, factoryProvidePowerBlockPos, factoryProvideRotationPointPos, factoryProvideSecondPos, factoryReviewResult, limitsManager, structureBuilder, structureID, structureTypeFields inherited from class nl.pim16aap2.animatedarchitecture.core.tooluser.ToolUser
animatedArchitectureToolUtil, localizer, protectionHookManager, stepFactory, textFactory, toolUserManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreatorSlidingDoor(ToolUser.Context context, IPlayer player, @Nullable String name) protectedCreatorSlidingDoor(ToolUser.Context context, StructureType structureType, IPlayer player, @Nullable String name) -
Method Summary
Modifier and TypeMethodDescriptionGenerates the list ofSteps that together will make up theToolUser.procedure.protected voidgiveTool()Method used to give the AnimatedArchitecture tool to the user.protected voidPrepares the step that sets the number of blocks to move.protected booleanprovideBlocksToMove(int blocksToMove) toString()Methods inherited from class nl.pim16aap2.animatedarchitecture.core.tooluser.creator.Creator
buyStructure, completeCreationProcess, completeNamingStep, completeSetOpenDirStep, completeSetOpenStatusStep, completeSetPowerBlockStep, completeSetRotationPointStep, confirmPrice, constructStructure, constructStructureData, createCuboid, getCuboid, getFirstPos, getMovementDirection, getName, getPowerblock, getPowerBlock, getPrice, getProperty, getRequiredProperty, getStructureArg, getStructureType, getUnregisteredUID, getValidOpenDirections, getWorld, giveTool, init, insertStructure, isLocked, isPowerBlockWithinRangeLimit, isProcessIsUpdatable, prepareReviewResult, prepareSetOpenDirection, prepareSetOpenStatus, provideFirstPos, provideSecondPos, setCuboid, setFirstPos, setLocked, setMovementDirection, setOpenDirectionTextSupplier, setOpenStatusTextSupplier, setPowerblock, setProperty, setWorld, showPreview, skipConfirmPrice, update, verifyWorldMatchMethods inherited from class nl.pim16aap2.animatedarchitecture.core.tooluser.ToolUser
abort, assertLockHeld, cleanUpProcess, getAllSteps, getCurrentStep, getCurrentStepMessage, getPlayer, giveTool, goToNextStep, handleInput, handleInputWithLock, insertStep, isActive, playerHasAccessToCuboid, playerHasAccessToLocation, playerHasTool, prepareCurrentStep, removeTool, runWithLock, sendMessage, sendMessage, setPlayerHasTool, skipToStep, toMinimalString
-
Constructor Details
-
CreatorSlidingDoor
protected CreatorSlidingDoor(ToolUser.Context context, StructureType structureType, IPlayer player, @Nullable @Nullable String name) -
CreatorSlidingDoor
public CreatorSlidingDoor(ToolUser.Context context, IPlayer player, @Nullable @Nullable String name)
-
-
Method Details
-
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.
-
prepareSetBlocksToMove
protected void prepareSetBlocksToMove()Prepares the step that sets the number of blocks to move. -
provideBlocksToMove
protected boolean provideBlocksToMove(int blocksToMove) -
giveTool
protected void giveTool()Description copied from class:CreatorMethod used to give the AnimatedArchitecture tool to the user.Overriding methods may call
ToolUser.giveTool(String, String, Text). -
toString
-