Interface EquipmentCondition

All Superinterfaces:
ComponentLike, DefaultedRegistryValue<EquipmentCondition>, StringRepresentable

Represents some condition for EquipmentType.
  • Method Details

    • test

      default boolean test(Supplier<? extends EquipmentType> type)
      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

      boolean test(EquipmentType type)
      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