Class DefaultResourceConditions
java.lang.Object
net.fabricmc.fabric.api.resource.conditions.v1.DefaultResourceConditions
Contains
ConditionJsonProvider
s for resource conditions provided by fabric itself.-
Method Summary
Modifier and TypeMethodDescriptionstatic ConditionJsonProvider
allModsLoaded
(String... modIds) Create a condition that returns true if all the passed mod ids correspond to a loaded mod.static ConditionJsonProvider
and
(ConditionJsonProvider... values) Create a condition that returns true if all of its child conditions are true.static ConditionJsonProvider
anyModLoaded
(String... modIds) Create a condition that returns true if at least one of the passed mod ids corresponds to a loaded mod.static ConditionJsonProvider
blockTagsPopulated
(TagKey<Block>... tags) Create a condition that returns true if each of the passed block tags exists and has at least one element.static ConditionJsonProvider
fluidTagsPopulated
(TagKey<Fluid>... tags) Create a condition that returns true if each of the passed fluid tags exists and has at least one element.(package private) static void
init()
static ConditionJsonProvider
itemTagsPopulated
(TagKey<Item>... tags) Create a condition that returns true if each of the passed item tags exists and has at least one element.static ConditionJsonProvider
not
(ConditionJsonProvider value) Create a NOT condition: returns true if its child condition is false, and false if its child is true.static ConditionJsonProvider
or
(ConditionJsonProvider... values) Create a condition that returns true if at least one of its child conditions is true.
-
Method Details
-
not
Create a NOT condition: returns true if its child condition is false, and false if its child is true. -
and
Create a condition that returns true if all of its child conditions are true. -
or
Create a condition that returns true if at least one of its child conditions is true. -
allModsLoaded
Create a condition that returns true if all the passed mod ids correspond to a loaded mod. -
anyModLoaded
Create a condition that returns true if at least one of the passed mod ids corresponds to a loaded mod. -
blockTagsPopulated
Create a condition that returns true if each of the passed block tags exists and has at least one element. -
fluidTagsPopulated
Create a condition that returns true if each of the passed fluid tags exists and has at least one element. -
itemTagsPopulated
Create a condition that returns true if each of the passed item tags exists and has at least one element. -
init
static void init()
-