public static class BetterPistons.Factory extends AbstractMechanicFactory<BetterPistons>
Constructor and Description |
---|
BetterPistons.Factory(BetterPistons.Types type) |
Modifier and Type | Method and Description |
---|---|
BetterPistons.Types |
checkSign(org.bukkit.block.Block sign) |
BetterPistons |
detect(com.sk89q.worldedit.BlockWorldVector pt)
Explore around the trigger to find a functional elevator; throw if things look funny.
|
BetterPistons |
detect(com.sk89q.worldedit.BlockWorldVector pt,
LocalPlayer player,
ChangedSign sign)
Detect the mechanic at a placed sign.
|
detect
public BetterPistons.Factory(BetterPistons.Types type)
public BetterPistons detect(com.sk89q.worldedit.BlockWorldVector pt) throws InvalidMechanismException
detect
in interface MechanicFactory<BetterPistons>
detect
in class AbstractMechanicFactory<BetterPistons>
pt
- the trigger (should be a signpost)InvalidMechanismException
- if the area looked like it was intended to be an elevator, but it failed.public BetterPistons.Types checkSign(org.bukkit.block.Block sign)
public BetterPistons detect(com.sk89q.worldedit.BlockWorldVector pt, LocalPlayer player, ChangedSign sign) throws InvalidMechanismException, ProcessedMechanismException
detect
in interface MechanicFactory<BetterPistons>
detect
in class AbstractMechanicFactory<BetterPistons>
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.Copyright © 2013. All Rights Reserved.