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 Type
    Method
    Description
    default boolean
    Gets the value of the flag.
    default void
    setCustomFlag(Identifier key, boolean value)
    Sets a flag.
  • Method Details

    • setCustomFlag

      default void setCustomFlag(Identifier key, boolean value)
      Sets a flag.
      Parameters:
      key - the key of the flag
      value - the value of the flag
    • getCustomFlag

      default boolean getCustomFlag(Identifier key)
      Gets the value of the flag.
      Parameters:
      key - the key of the flag
      Returns:
      the value, or false if the flag is not set