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 net.kyori.adventure.text.ComponentLike
asComponentMethods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, keyMethods inherited from interface org.spongepowered.api.data.type.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
-