Class BooleanTriggerReturnData
java.lang.Object
com.minecolonies.core.quests.triggers.BooleanTriggerReturnData
- All Implemented Interfaces:
ITriggerReturnData<Boolean>
Wrapper around boolean for return data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the actual content of the return data.booleanCheck if it is a match.
-
Constructor Details
-
BooleanTriggerReturnData
public BooleanTriggerReturnData(boolean match) Create a new return data obj.- Parameters:
match- the match to return.
-
-
Method Details
-
isPositive
public boolean isPositive()Description copied from interface:ITriggerReturnDataCheck if it is a match.- Specified by:
isPositivein interfaceITriggerReturnData<Boolean>- Returns:
- true if so.
-
getContent
Description copied from interface:ITriggerReturnDataGet the actual content of the return data.- Specified by:
getContentin interfaceITriggerReturnData<Boolean>- Returns:
- the content.
-