Package forestry.api.genetics.filter
Interface IFilterRuleType
- All Superinterfaces:
IFilterRule
A filter rule type is a filter option that can be set in the Genetic Filter block.
Some filter rule types can be marked as "containers" which means that other IFilterRule
can be added to their filtering logic. An example would the the default "cave" filter type, which is supposed to filter
by organisms that live in caves. It doesn't filter anything by default, but the apiculture module adds a filter logic
that filters bees depending on if they have the BeeChromosomes.CAVE_DWELLING trait.
Modded species types could also take advantage of the cave filter type by adding another IFilterRule to the cave rule type.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddLogic(IFilterRule logic) getId()net.minecraft.resources.ResourceLocationdefault booleanMethods inherited from interface forestry.api.genetics.filter.IFilterRule
getSpeciesTypeId, isValid
-
Method Details
-
addLogic
-
isContainer
default boolean isContainer()- Returns:
- True if logic can be added to this type through
addLogic(forestry.api.genetics.filter.IFilterRule).
-
getId
String getId()- Returns:
- A unique ID for the rule.
-
getSprite
net.minecraft.resources.ResourceLocation getSprite()- Returns:
- The resource location for the sprite used to select this rule type in the Genetic Filter screen.
-