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