public static class Door.Factory extends AbstractMechanicFactory<Door>
Constructor and Description |
---|
Door.Factory() |
Modifier and Type | Method and Description |
---|---|
Door |
detect(com.sk89q.worldedit.BlockWorldVector pt)
Explore around the trigger to find a Door; throw if things look funny.
|
Door |
detect(com.sk89q.worldedit.BlockWorldVector pt,
LocalPlayer player,
ChangedSign sign)
Detect the mechanic at a placed sign.
|
detect
public Door detect(com.sk89q.worldedit.BlockWorldVector pt, LocalPlayer player, ChangedSign sign) throws InvalidMechanismException, ProcessedMechanismException
detect
in interface MechanicFactory<Door>
detect
in class AbstractMechanicFactory<Door>
Mechanic
if a mechanism could be found at the location; null otherwiseProcessedMechanismException
InvalidMechanismException
- if it appears that the position is intended to me a mechanism,
but the mechanism is misconfigured and inoperable.public Door detect(com.sk89q.worldedit.BlockWorldVector pt) throws InvalidMechanismException
detect
in interface MechanicFactory<Door>
detect
in class AbstractMechanicFactory<Door>
pt
- the trigger (should be a signpost)InvalidMechanismException
- if the area looked like it was intended to be a door, but it failed.Copyright © 2013. All Rights Reserved.