Interface EquipmentCondition
- All Superinterfaces:
ComponentLike, DefaultedRegistryValue<EquipmentCondition>, StringRepresentable
@CatalogedBy(EquipmentConditions.class)
public interface EquipmentCondition
extends DefaultedRegistryValue<EquipmentCondition>, StringRepresentable, ComponentLike
Represents some condition for
EquipmentType.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleantest(Supplier<? extends EquipmentType> type) Tests whether the equipment type is suitable for this condition.booleantest(EquipmentType type) Tests whether the equipment type is suitable for this condition.Methods inherited from interface ComponentLike
asComponentMethods inherited from interface DefaultedRegistryValue
asDefaultedReference, findKey, keyMethods inherited from interface StringRepresentable
serializationString
-
Method Details
-
test
Tests whether the equipment type is suitable for this condition.- Parameters:
type- The equipment type to test- Returns:
- True if the equipment type is suitable for this condition
-
test
Tests whether the equipment type is suitable for this condition.- Parameters:
type- The equipment type to test- Returns:
- True if the equipment type is suitable for this condition
-