Interface FabricEntitySelectorReader
public interface FabricEntitySelectorReader
Fabric extension to
EntitySelectorReader
, implemented
using interface injection. This allows custom entity selectors to
set a custom flag to a reader. This can be used to implement mutually-exclusive
or non-repeatable entity selector option.-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
getCustomFlag
(Identifier key) Gets the value of the flag.default void
setCustomFlag
(Identifier key, boolean value) Sets a flag.
-
Method Details
-
setCustomFlag
Sets a flag.- Parameters:
key
- the key of the flagvalue
- the value of the flag
-
getCustomFlag
Gets the value of the flag.- Parameters:
key
- the key of the flag- Returns:
- the value, or
false
if the flag is not set
-