Class SpecificRegistryContains<T>
java.lang.Object
net.darkhax.bookshelf.api.data.conditions.impl.SpecificRegistryContains<T>
- All Implemented Interfaces:
ILoadCondition
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if the condition has been met or not.Set<net.minecraft.resources.ResourceLocation>getType()static <RT> LoadConditions.ConditionType
-
Method Details
-
of
public static <RT> LoadConditions.ConditionType of(String key, net.minecraft.core.Registry<RT> registry) -
allowLoading
public boolean allowLoading()Description copied from interface:ILoadConditionTests if the condition has been met or not.- Specified by:
allowLoadingin interfaceILoadCondition- Returns:
- Has the condition been met?
-
getRequiredEntries
-
getType
- Specified by:
getTypein interfaceILoadCondition
-