public class SignActionBlocker extends SignAction
Constructor and Description |
---|
SignActionBlocker() |
Modifier and Type | Method and Description |
---|---|
boolean |
build(SignChangeActionEvent event)
Fired when a sign is being built
|
void |
execute(SignActionEvent info)
Fired when this sign is being executed for a certain event
|
boolean |
isMemberMoveHandled(SignActionEvent info)
Whether this Sign Action handles
SignActionType.MEMBER_MOVE for an event. |
boolean |
isPathFindingBlocked(SignActionEvent info,
RailState state)
Gets whether the path finding is halted by this sign, not allowing
any further discovery from this point onwards.
|
boolean |
match(SignActionEvent info)
Checks whether a sign action event is meant for this type of Sign Action
|
canSupportRC, click, deinit, destroy, executeAll, executeAll, getRailDestinationName, getSignAction, handleBuild, handleBuild, handleBuild, handleClick, handleDestroy, handleLoadChange, init, isRailSwitcher, loadedChanged, overrideFacing, register, register, unregister, verify
public boolean match(SignActionEvent info)
SignAction
match
in class SignAction
info
- eventpublic void execute(SignActionEvent info)
SignAction
execute
in class SignAction
info
- eventpublic boolean isMemberMoveHandled(SignActionEvent info)
SignAction
SignActionType.MEMBER_MOVE
for an event.
By default this is False, allowing for minor performance optimizations.
If MEMBER_MOVE must be handled, override this method and return True when appropriate.isMemberMoveHandled
in class SignAction
info
- of the signpublic boolean isPathFindingBlocked(SignActionEvent info, RailState state)
SignAction
isPathFindingBlocked
in class SignAction
info
- of the signstate
- while driving on the rails, which stores the movement direction among thingspublic boolean build(SignChangeActionEvent event)
SignAction
build
in class SignAction
event
- containing relevant Build informationCopyright © 2019. All rights reserved.