Class Or
java.lang.Object
net.darkhax.bookshelf.common.impl.data.conditions.Or
- All Implemented Interfaces:
ILoadCondition
This load condition will test an array of sub-conditions and make sure at least one of them are met.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<Or> static final CachedSupplier<ConditionType> static final net.minecraft.resources.ResourceLocation -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if the condition has been met or not.getType()Gets the type of the condition.
-
Field Details
-
TYPE_ID
public static final net.minecraft.resources.ResourceLocation TYPE_ID -
TYPE
-
CODEC
-
-
Method Details
-
getConditions
-
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?
-
getType
Description copied from interface:ILoadConditionGets the type of the condition. This is required for serializing conditions.- Specified by:
getTypein interfaceILoadCondition- Returns:
- The type of the condition.
-