public abstract class AbstractMechanicFactory<T extends Mechanic> extends Object implements MechanicFactory<T>
Constructor and Description |
---|
AbstractMechanicFactory() |
Modifier and Type | Method and Description |
---|---|
T |
detect(com.sk89q.worldedit.BlockWorldVector pos)
Detect the mechanic at a location.
|
T |
detect(com.sk89q.worldedit.BlockWorldVector pos,
LocalPlayer player)
Detect the mechanic at interacted location.
|
T |
detect(com.sk89q.worldedit.BlockWorldVector pos,
LocalPlayer player,
ChangedSign sign)
Detect the mechanic at a placed sign.
|
public T detect(com.sk89q.worldedit.BlockWorldVector pos, LocalPlayer player, ChangedSign sign) throws InvalidMechanismException, ProcessedMechanismException
MechanicFactory
detect
in interface MechanicFactory<T extends Mechanic>
Mechanic
if a mechanism could be found at the location; null otherwiseInvalidMechanismException
- if it appears that the position is intended to me a mechanism,
but the mechanism is misconfigured and inoperable.ProcessedMechanismException
public T detect(com.sk89q.worldedit.BlockWorldVector pos, LocalPlayer player) throws InvalidMechanismException
MechanicFactory
detect
in interface MechanicFactory<T extends Mechanic>
AbstractMechanic
if a mechanism could be found at the location; null otherwiseInvalidMechanismException
- if it appears that the position is intended to me a mechanism,
but the mechanism is misconfigured and inoperable.public T detect(com.sk89q.worldedit.BlockWorldVector pos) throws InvalidMechanismException
MechanicFactory
detect
in interface MechanicFactory<T extends Mechanic>
AbstractMechanic
if a mechanism could be found at the location; null otherwiseInvalidMechanismException
- if it appears that the position is intended to me a mechanism,
but the mechanism is misconfigured and inoperable.Copyright © 2013. All Rights Reserved.